javascript - adding extra html tags within angularjs loop -
i need add html tags within angularjs loop so:
<div ng-repeat="fixture in fixtures.fixtures "> <tr> <th class="date" colspan="5">{{fixture.date | cmdate:'mm/dd/yyyy'}}</th> </tr> <tr> <td>{{teamname(fixture.hometeam) }}</td> <td> {{score(fixture.goalshometeam)}}</td> <td>-</td> <td>{{score(fixture.goalsawayteam)}} </td> <td>{{teamname(fixture.awayteam)}}</td> </tr> </div>
however no data retrieved when that, if have coded follows work:
<tr ng-repeat="fixture in fixtures.fixtures "> <td>{{fixture.date | cmdate:'mm/dd/yyyy'}}</td> <td>{{teamname(fixture.hometeam) }}</td> <td> {{score(fixture.goalshometeam)}}</td> <td>-</td> <td>{{score(fixture.goalsawayteam)}} </td> <td>{{teamname(fixture.awayteam)}}</td> </tr>
what problem?
Comments
Post a Comment