This commit is contained in:
Tomasz Ducin
2015-07-31 09:40:07 +02:00
parent 4889743ea8
commit efc6bfe2ec
@@ -3,10 +3,10 @@
var myapp = angular.module("myapp", ["notifications"]);
myapp.controller("MyController", ["$scope", "notifications",
function ($scope:ng.IScope, $notifications:angular.notifications.INotificationFactory) { // <-- Inject notifications
function ($scope:ng.IScope, notifications:angular.notifications.INotificationFactory) { // <-- Inject notifications
var userData = {'some': 'data', 'optional': true};
$notification.info("Something happened", "here is the content of what happened", userData);
}
]);
]);