I'll expand on this to say that it's rate to pass a service directly to the DOM. Services usually return their object data to a controller, which then interacts with the DOM.
> On Dec 23, 2013, at 1:22 PM, Joseph Lehr <ousside...@gmail.com> wrote: > > $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 angular+unsubscr...@googlegroups.com. > To post to this group, send email to angular@googlegroups.com. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/groups/opt_out. -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.