jeudi 5 février 2015

ng-repeat not repeating in my angular app


Vote count:

0




I have an array but it's only showing $scope.stocks[0]



{{stocks[0]}} // returns something
{{stocks[1]}} // returns another thing
{{stocks[2]}} // returns one more thing
{{stocks[3]}} // and so on...
{{stocks[4]}}
{{stocks[5]}}
<div ng-repeat="stock in stocks">
{{stock}} // only repeats one time. Returns stock[0]
</div>


asked 1 min ago







ng-repeat not repeating in my angular app

Aucun commentaire:

Enregistrer un commentaire