Skip to content

Commit

Permalink
Merge pull request marcorinck#29 from pgaertig/fix/new_interceptor_api
Browse files Browse the repository at this point in the history
Angular 1.3 compatibility fix - demo and readme
  • Loading branch information
Jan Stevens committed Aug 10, 2014
2 parents a1dcca4 + 45a7a3e commit f793744
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ business logic on the server is able to send messages/notifications to the clien
var app = angular.module('myApp', ['angular-growl']);

app.config(['growlProvider', '$httpProvider', function(growlProvider, $httpProvider) {
$httpProvider.responseInterceptors.push(growlProvider.serverMessagesInterceptor);
$httpProvider.interceptors.push(growlProvider.serverMessagesInterceptor);
}]);
````

Expand Down
2 changes: 1 addition & 1 deletion demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ app.config(["growlProvider", "$httpProvider", function(growlProvider, $httpProvi
growlProvider.messageTextKey("messagetext");
growlProvider.messageSeverityKey("severity-level");
growlProvider.onlyUniqueMessages(true);
$httpProvider.responseInterceptors.push(growlProvider.serverMessagesInterceptor);
$httpProvider.interceptors.push(growlProvider.serverMessagesInterceptor);
}]);

app.run(function($httpBackend) {
Expand Down

0 comments on commit f793744

Please sign in to comment.