Il giorno 07/apr/2014, alle ore 01:20, T M <[email protected]> ha scritto:
> hi, I don't know where to check AngularJS' collection operation. For example,
> is it possible to use an index loop to enumerate the collection, like:
> for (i=0; i<items.length; i++) items[i]...
This is
angular.forEach(items,function(value,key) {.....});
>
> or, is there an operation to get the first item in a collection? I need to
> skip ng-repeat, when I have exactly one item in a collection.
Have you see ng-if ?
M.
--
Davide Morelli
[email protected]
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.