javascript - Duplicate Key in Repeater error when there is no item -
how solve error in angularjs? imagine i'm doing todolist app, app crashes when there no item in ng-repeat.
<li ng-repeat="item in myitems"></li>
i think it's because of myitems, ajax returned object.
when database doesn't have value, ng-repeat seem doesn't work , break whole app
try, <li ng-repeat="item in myitems"></li>
:)
may be, missed "
Comments
Post a Comment