DefinitelyTyped/types/angular-notifications/angular-notifications-tests.ts
2017-03-24 14:27:52 -07:00

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);
}
]);