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

Commit

Permalink
feat(loader): apply support for loaderOptions.$http
Browse files Browse the repository at this point in the history
```js
// i.e.
$translationProvider.useStaticFilesLoader({$http: {method: 'JSONP'}});
```
  • Loading branch information
knalli committed Sep 18, 2014
1 parent d1745e4 commit 8613bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -943,9 +943,9 @@ angular.module('pascalprecht.translate').provider('$translate', ['$STORAGE_KEY',

$injector.get($loaderFactory)(angular.extend($loaderOptions, {
key: key,
$http: {
$http: angular.extend({}, $loaderOptions.$http, {
cache: cache
}
})
})).then(function (data) {
var translationTable = {};
$rootScope.$emit('$translateLoadingSuccess', {language: key});
Expand Down

0 comments on commit 8613bef

Please sign in to comment.