I'm using angular 2.0.0-rc.2,
My view is like following:
<div *ngFor="let kp of defltPge;let i=index" class="col-sm-4">
<div class="iii" [innerHtml]="kp['content']"></div>
</div>
Value of defltPge logic is following
let tt4 = require('./dashStatic/tab-chat.html');
let tt5 = require('./dashStatic/tabs.html');
defltPge:[
{
"content":tt5
},
{
"content":tt4
}];
HTML are as follows:
tab-chat.html
<div class="item-remove-animate item-avatar item-icon-right item item-complex item-right-editable" *ngFor="let chat of chats">
<a class="item-content">
<img src="img/ben.png" src="img/ben.png">
<h2 class="ng-binding">{{chat.name}}</h2>
<p class="ng-binding">{{chat.lastText}}</p>
<i class="fa fa-chevron-right"></i>
</a>
</div>
tabs.html
<h1>
Dashboard
</h1>
but tab-chat.html is not rendering correctly it just shows uncompiled code as following:
{{chat.name}}
{{chat.lastText}}