Made such a factory
//Factories Versions = app.factory('Versions', function ($resource) { return $resource('http://webfather.ru:3000/api/links/', { domainid : '@domainid' }); })
Trying to use it in the controller.
//Controllers app.controller('multiCtrl', ['$scope', function ($scope) { $scope.Versions = Versions.query({domainid : '56fa4eb4a93200ca38f4be8a'}); alert($scope.Versions); }]);
And I get a TypeError error : Versions.query is not a function
what am i doing wrong?