angularjs - Angular: access ngResources from a directive -


i'd access ngresources directive possible?

basically directive $scope has object points other via ids, other objects can populated via existing ngresource. i'd load them render them correctly.

you can pass $resource, or own $resource-based service directive.

.directive('mydirective', function($resource, myservice) {  }); 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -