Skip to content

Commit 7c8ffb8

Browse files
Create notification-badge.js
Number of notifications and definition of the badge display rule
1 parent 9b0e300 commit 7c8ffb8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
api.controller=function($scope) {
2+
var c = this;
3+
4+
c.badgeCount = 3;
5+
c.hasNewNotification = c.badgeCount > 0;
6+
};

0 commit comments

Comments
 (0)