Skip to content

Commit d7151c1

Browse files
authored
Fix issue with custom template http request
Update to use the response.data which is the actual template vs the entire response when passing to processNotificationTemplate.
1 parent c283dd8 commit d7151c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)