Skip to content

Commit 043795e

Browse files
authored
Merge pull request #117 from Marcrazyness/master
Fix issue with custom template http request
2 parents c283dd8 + 50d2ab6 commit 043795e

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

demo/angular-ui-notification.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-ui-notification.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ angular.module('ui-notification').provider('Notification', function() {
7070
// load it via $http only if it isn't default template and template isn't exist in template cache
7171
// cache:true means cache it for later access.
7272
$http.get(args.template,{cache: true})
73-
.then(processNotificationTemplate)
73+
.then(function(response){
74+
processNotificationTemplate(response.data);
75+
})
7476
.catch(function(data){
7577
throw new Error('Template ('+args.template+') could not be loaded. ' + data);
7678
});

dist/angular-ui-notification.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/angular-ui-notification.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ angular.module('ui-notification').provider('Notification', function() {
6363
// load it via $http only if it isn't default template and template isn't exist in template cache
6464
// cache:true means cache it for later access.
6565
$http.get(args.template,{cache: true})
66-
.then(processNotificationTemplate)
66+
.then(function(response){
67+
processNotificationTemplate(response.data);
68+
})
6769
.catch(function(data){
6870
throw new Error('Template ('+args.template+') could not be loaded. ' + data);
6971
});

0 commit comments

Comments
 (0)