From 22f5c4b7b9612b3645c5d79b9bc9d2fec917fe25 Mon Sep 17 00:00:00 2001 From: knalli Date: Tue, 30 Sep 2014 21:35:11 +0200 Subject: [PATCH] fix(service): constructor `useUrlLoader()` missed optional options --- src/service/translate.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/service/translate.js b/src/service/translate.js index 4dbf03483..2ff49abdf 100644 --- a/src/service/translate.js +++ b/src/service/translate.js @@ -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)); }; /**