I had an application in angular1 and I was using jquery to load an external page in my HTML element. This is the html of my container element:
相关标签:
You can use [innerHtml] something like
[innerHtml]
<div [innerHtml]="myTemplate"> </div>
In your component
export public class MyComponent { private myTemplate: any = ""; constructor(http: Http) { http.get(myExternalPageLink).map((html:any) => this.myTemplate = html); } }