1
Как отправить переменные год, месяцGet функция угловой сервис от контроллера?Как отправлять функции функции углового обслуживания?
Сервис
myApp.factory('getJsonForCalendarService', function($resource, year, monthGet) {
return $resource(
'../rest/api.php',
{ method: 'getJsonForCalendar', year: year, monthGet:month},
{'query': { method: 'GET', isArray: true }}
);
});
Контроллер
$scope.getJsonForCalendar = getJsonForCalendarService.query(function (response, year, monthGet) {
});