Wednesday, May 1, 2019

Set a random attribute on an ElementRef in Angular 7 as you might elsewhere in JavaScript.

This is friendly to the TypeScript compiler:

this.iFrame.nativeElement.setAttribute("src", "http://www.example.com");

No comments:

Post a Comment