Answer the question
In order to leave comments, you need to log in
Updating data in a service [Angular.JS]
Good afternoon.
There is a controller that works with the model, the model is quite voluminous.
function FooCtrl($scope, service) {
$scope.foo1 = null;
$scope.foo2 = null;
$scope.foo3 = null;
............................
$scope.fooN = null;
}
angular.module('myService', []).
factory('service', function () {
var foo1 = 'abc';
...........
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question