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 -

python - Subclassed QStyledItemDelegate ignores Stylesheet -

sql server - TFS 2012 TF255062 Error after removing 'Active Directory' Role -