I am trying to convert my AngularJS application to Angular2 application.I have a nested loop in my template. But it is not working when I use Angular2 syntax.
this is my code -
<table>
<tr *ngFor = "let lbusQuestionAnswer of ibusQuestion.ilstQuestionAnswer">
<table>
<tr *ngFor = "let lbusComment of lbusQuestionAnswer.ilstComments">
<td>
<div>{{lbusComment.icdoComment.idoComment.commentHtml}}</div>
</td>
</tr>
</table>
</tr>
</table>
JSON
And I get below error in console log.
EXCEPTION: TypeError: Cannot read property 'ilstComments' of undefined
I know, there are a lot of similar questions like this on StackOverflow. But nothing seems to be working.
Thanks Fahad Mullaji