I'm pretty new to Angular 2 - and have a "simple" question
I have a web service, which delivers content to a view .. in a web service response i want to loop a member array in the template ..
eg.
name = 'testtest';
feed = [{title: 'test'}, {title: 'test42'}];
view.html:
<div class="content" [innerHTML]="page._content"></div>
view.ts:
this.page['_content'] = this.sanitizer.bypassSecurityTrustHtml(this.page['content']);
web service html: this.page['content']:
{{name}} <li class="item" *ngFor="let entry of feed"> ....
result:
{{name}}