Skip to content

Commit

Permalink
feat(common_api): Adds the posibility to override the cannonical url
Browse files Browse the repository at this point in the history
for nested resources.
  • Loading branch information
iobaixas committed Nov 26, 2014
1 parent db4e63b commit db47f98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/module/api/common-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ RMModule.factory('RMCommonApi', ['$http', 'RMFastQ', '$log', function($http, $q,
if(_for) {
_for = '$' + _for + 'UrlFor';
if(this.$scope[_for]) return this.$scope[_for](this);
} else if(this.$scope.$cannonicalUrlFor) {
return this.$scope.$cannonicalUrlFor(this);
}

return this.$scope.$urlFor(this);
Expand Down

0 comments on commit db47f98

Please sign in to comment.