You can use [innerHtml]
something like
<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);
}
}
More Related Contents:
- Should I write methods as arrow functions in Angular’s class
- Typescript/Angular/ES6: can I finally let `hasOwnProperty()` die in for loops?
- How to load external scripts dynamically in Angular?
- I get “Http failure response for (unknown url): 0 Unknown Error” instead of actual error message in Angular
- Angular error: “Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input'”
- Use component from another module
- How to write unit testing for Angular / TypeScript for private methods with Jasmine
- Angular 2 – How do I navigate to another route using this.router.parent.navigate(‘/about’)?
- async/await in Angular `ngOnInit`
- How to inject service into class (not component)
- Emit event from parent to child
- Angular2 router keep query string
- How to make a sequence of http requests in Angular 6 using RxJS
- How to set unique template reference variables inside an *ngFor? (Angular)
- Getting Image from API in Angular 4/5+?
- Angular 2 Dynamically insert a component into a specific DOM node without using ViewContainerRef
- Angular 4 HttpClient Query Parameters
- Can’t bind to ‘formControl’ since it isn’t a known property of ‘input’ – Angular2 Material Autocomplete issue
- Type casting within a template in Angular 2
- Subscribing to a nested Observable
- Angular 2 translation change language in application
- Enabling CORS on Azure Active Directory
- How to run the Dist Folder on Local Machine in Angular 6+?
- How to delete a field in a Firestore Document?
- Angular2: use [(ngModel)] with [ngModelOptions]=”{standalone: true}” to link to a reference to model’s property
- How to manually set focus on mat-form-field in Angular 6
- What is the difference between fakeAsync and async in Angular testing?
- Do I need to `complete()` takeUntil Subject inside ngOnDestroy?
- Can I use Angular i18n to translate string literals in typescript code
- How to generate components in a specific folder with Angular CLI?