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

Popular posts from this blog

node.js - StackOverflow API not returning JSON -

ios - Apple Push Notifications + TestFlight + Enterprise wildcard provisioning profile -

android - Drag and drop in ScrollView -