Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix(service): constructor useUrlLoader() missed optional options
Browse files Browse the repository at this point in the history
  • Loading branch information
knalli committed Sep 30, 2014
1 parent 22cc8b4 commit 22f5c4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/service/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,10 @@ angular.module('pascalprecht.translate').provider('$translate', ['$STORAGE_KEY',
* Tells angular-translate to use `$translateUrlLoader` extension service as loader.
*
* @param {string} url Url
* @param {Object=} options Optional configuration object
*/
this.useUrlLoader = function (url) {
return this.useLoader('$translateUrlLoader', { url: url });
this.useUrlLoader = function (url, options) {
return this.useLoader('$translateUrlLoader', angular.extend({ url: url }, options));
};

/**
Expand Down

0 comments on commit 22f5c4b

Please sign in to comment.