app.js为Growl Notifications,需要控制器吗?

时间:2015-10-18 11:24:40

标签: angularjs

参考:https://github.com/jvandemo/angular-growl-notifications

Growl通知的app.js文件是什么?我只需要一个简单的通知,如下面链接中的“基本示例”所示。

http://jvandemo.github.io/angular-growl-notifications/examples/index

1 个答案:

答案 0 :(得分:0)

是的,我们需要一个。这是Plunker。

http://plnkr.co/edit/ZZHW0JKumXfdFgjTjVJz?p=preview

var app = angular.module('plunker', ['growlNotifications']);

app.controller('MainCtrl', function($scope, $timeout) {

});