<notification-icon count="vm.autoPending[0]">
<i class="fa fa-envelope-o fa-3x"></i>
</notification-icon>
<notification-icon animation="grow" count="vm.pending">
<i class="fa fa-envelope-o fa-3x"></i>
</notification-icon>
<notification-icon animation="bounce" count="vm.pending">
<i class="fa fa-envelope-o fa-3x"></i>
</notification-icon>
<notification-icon animation="shake" count="vm.pending">
<i class="fa fa-envelope-o fa-3x"></i>
</notification-icon>
<notification-icon animation="none" disappear-animation="bounce" count="vm.pending">
<i class="fa fa-envelope-o fa-3x"></i>
</notification-icon>
<notification-icon animation="my-custom-animation" ng-init="vm.customPending = 0" count="vm.customPending">
<i class="fa fa-envelope-o fa-3x"></i>
</notification-icon>
.custom-style .angular-notification-icons-icon {
left: -10px;
background: yellow;
color: black;
width: 30px;
height: 30px;
font-weight: bolder;
font-size: 1.2em;
}
.angular-notification-icons-icon.my-custom-animation {
transition:0.5s linear all;
}
.angular-notification-icons-icon.my-custom-animation-add {
background: black;
color: white;
}
.angular-notification-icons-icon.my-custom-animation-add-active {
background: yellow;
color: black;
}
<notification-icon ng-init="vm.mycount" count="vm.domCount" clear-trigger="click">
<button class="btn btn-default">Click to Clear</button>
</notification-icon>
<notification-icon count="vm.domCount" clear-trigger="mouseover">
<button class="btn btn-default">Hover to Clear</button>
</notification-icon>
<notification-icon appear-animation="grow" update-animation="none" disappear-animation="grow" ng-init="vm.hiddenPending" hide-count="true" count="vm.hiddenPending">
<i class="fa fa-envelope-o fa-3x"></i>
</notification-icon>
<notification-icon animation="shake" ng-init="vm.alwaysShowCount = 0" count="vm.alwaysShowCount" always-show="true">
<i class="fa fa-envelope-o fa-3x"></i>
</notification-icon>
<notification-icon count="vm.autoPending[1]">
<i class="fa fa-envelope-o fa-3x"></i>
</notification-icon>
bower install angular-notification-icons --save
<link rel="stylesheet" href="bower_components/angular-notification-icons/angular-notification-icons.min.css">
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-animate/angular-animate.js"></script>
<script src="bower_components/angular-notification-icons/angular-notification-icons.min.js"></script>
angular.module('MyApp', ['angular-notification-icons']);
<notification-icon count="scopeVariable">
...
</notification-icon>