The problem is in the second table, where i do the ng-repeat with problems, 
i should tell to ng-repeat the index of data in the array 
(ng-repeat="client in showClients.cliente[0]") instead of ng-repeat="client 
in showClients.cliente"

soooo easy =S yep...i was too blind =)

i upload the fixed code!

El jueves, 27 de agosto de 2015, 12:20:46 (UTC+2), Nelson Pedrosa escribió:
>
> Hi all!
>
> I'm new in angularjs and i'm learning by my self, i have a problem with 
> ng-repeat.
>
> I have 2 tables,
>
> the first shows data and have a ng-click event for each row, when you 
> click in a row, it pass the data (the element 'otherVal' of the object, i 
> don't need the entire object ) of the selected element to a factory object.
> the second table shows the data of the factory object.
>
> the problem is that when the data of the factory object have 2 elements or 
> more, the ng-repeat only shows the first element.
>
> i send a file with the code to try =)
>
> Thanks!
>

-- 
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.
Title: ng-repeat doesn't work
#1#2
{{data.name}} {{data.value}}
object have...dataLen.
{{client}} {{client[$index].subName}} long:{{client.length}}

Reply via email to