We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want $compile alternative API in Angular 2.
$compile
@Component({ selector: "app", template: ` <app-shell> <app-content [src]="content"></app-content> </app-shell> ` }) class AppComponent { content: string; ngOnInit() { this.http.get('/api/app-content') .map(resp => resp.json()) .subscribe(data => { this.content = data.template; // HTML as string }); } }
When I use innerHTML property to apply my HTML to <app-content>, standard HTML elements work well, but any directives/components don't work.
innerHTML
<app-content>
I want to load a template which contains ng2 directives/components.
The text was updated successfully, but these errors were encountered:
Looks like a dup of #7596
Sorry, something went wrong.
@zoechi Thank you! I'll watch that issue.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
No branches or pull requests
I want
$compile
alternative API in Angular 2.Use-case
When I use
innerHTML
property to apply my HTML to<app-content>
, standard HTML elements work well, but any directives/components don't work.I want to load a template which contains ng2 directives/components.
The text was updated successfully, but these errors were encountered: