$scope.PhoneList = 
{"List":[{"Name":"chart","Values":[10,11,12,13,14,15]},{"Name":"chart","Values":[20,21,22,23,24,25]}]}
 


<table> 
<tr ng-repeat="list in scope.PhoneList.List">
<td>{{list.name}}</td>
<td><span ng-repeat="value in list.Values" >{{value}}</span></td>
</tr>
</table>

you might have to set scope.PhoneList inside the resource call before the 
return resource

On Monday, December 23, 2013 9:23:30 AM UTC-7, Daniel Lopez wrote:
>
> Hi.
>
> I have a service 
>
> dashboardServices.factory('Phone', ['$resource',
>   function ($resource) {
>       var resource = $resource('http://localhost:9000/api/json', {}, { 
> query: { method: 'GET'} });
>       return resource;
>   } ]);
>   
> that returns me this 
>
>
> {"List":[{"Name":"chart","Values":[10,11,12,13,14,15]},{"Name":"chart","Values":[20,21,22,23,24,25]}]}
>  
>
> when i do this in my html file {{phones}}
>
> I want to use the the arrays to build a chart. How can i separate that 
> list do it?
>


On Monday, December 23, 2013 9:23:30 AM UTC-7, Daniel Lopez wrote:
>
> Hi.
>
> I have a service 
>
> dashboardServices.factory('Phone', ['$resource',
>   function ($resource) {
>       var resource = $resource('http://localhost:9000/api/json', {}, { 
> query: { method: 'GET'} });
>       return resource;
>   } ]);
>   
> that returns me this 
>
>
> {"List":[{"Name":"chart","Values":[10,11,12,13,14,15]},{"Name":"chart","Values":[20,21,22,23,24,25]}]}
>  
>
> when i do this in my html file {{phones}}
>
> I want to use the the arrays to build a chart. How can i separate that 
> list do it?
>

-- 
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/groups/opt_out.

Reply via email to