angularjs - Angular-js - ng-repeat doesn't work if the first element is null -
angularjs - Angular-js - ng-repeat doesn't work if the first element is null -
i have array of objects , of them null
<div ng-repeat="submission in data.submissions"> <div ng-if="submission"> {{submission.submissionid}} </div> </div> if first object in array null, nil renders @ all. if first element not null, renders no problem.
is intentional?
<div ng-repeat="submission in data.submissions track $index"> <div ng-if="submission"> {{submission.submissionid}} </div> </div>
angularjs null ng-repeat
Comments
Post a Comment