mercredi 30 septembre 2015

Using ng-repeat on a position of $scope

I have a array like:

$scope.items = [];
$scope.items[0] = {val1: 1, val2: 2}

I'm trying to use an ng-repeat like:

<div ng-repeat = "item in items[0]"> {{item.val1}} </div>

which it is the right way to use this? Thanks :D !




Aucun commentaire:

Enregistrer un commentaire