Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .factory('CompanyRolesResource', function($resource, FdConfig) {
- return $resource(FdConfig.routes.companyRoles);
- })
- ctrl.saveCompanyRole = function(companyRole) {
- return CompanyRolesResource.save({}, companyRole).$promise.then(function (response) {
- console.log(response)
- });
- };
- Resource
- $promise: Promise
- $$state: Object
- __proto__: Object
- $resolved: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement