mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
461 B
TypeScript
13 lines
461 B
TypeScript
/// <reference path="angular-notifications.d.ts" />
|
|
|
|
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};
|
|
notification.info("Something happened", "here is the content of what happened", userData);
|
|
|
|
}
|
|
]);
|