mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
411 B
TypeScript
13 lines
411 B
TypeScript
|
|
|
|
var myapp = angular.module("myapp", ["notifications"]);
|
|
|
|
myapp.controller("MyController", ["$scope", "notifications",
|
|
function ($scope:ng.IScope, notifications:angular.notifications.INotificationFactory) { // <-- Inject notifications
|
|
|
|
var userData = {'some': 'data', 'optional': true};
|
|
notifications.info("Something happened", "here is the content of what happened", userData);
|
|
|
|
}
|
|
]);
|