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

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -