All Questions
Tagged with angularjs-resource angularjs-controller
3 questions
1
vote
0
answers
604
views
Angular controller as vm not available in $resource.$save callback function, only $scope
I am having an issue in AngularJS when not wanting to use $scope but a controller instead in a callback function passed to $resource.$save() as parameter.
The controller code is shown below. This ...
-1
votes
1
answer
471
views
AngularJS, ngResource, Service and multiple controllers. How to keep data synchronized?
I searched a lot about this, and although I found some similar problems, they are not exactly what I want.
Imagine this kind of code:
angular
.module('foobar', ['ngResource'])
.service('...
1
vote
1
answer
504
views
How to remove repetitve function from angularjs controller
Hi i am writing some code staff under angularjs but i has to make duplicated code from controller to other for example let's assume that we have two controllers editProductController and ...