Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from inferno001/ng-animate
Browse files Browse the repository at this point in the history
Add ngAnimate Class
  • Loading branch information
e0ipso committed Aug 7, 2014
2 parents c533ff3 + 2dfc338 commit e55a240
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion message-center.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ MessageCenterModule.
/*jshint multistr: true */
var templateString = '\
<div id="mc-messages-wrapper">\
<div class="alert alert-{{ message.type }} fade in" ng-repeat="message in mcMessages">\
<div class="alert alert-{{ message.type }} {{ animation }}" ng-repeat="message in mcMessages">\
<a class="close" ng-click="message.close();" data-dismiss="alert" aria-hidden="true">&times;</a>\
<span ng-switch on="message.html">\
<span ng-switch-when="true">\
Expand All @@ -105,6 +105,8 @@ MessageCenterModule.
$rootScope.mcMessages = messageCenterService.mcMessages;
};
$rootScope.$on('$locationChangeStart', changeReaction);

scope.animation = attrs.animation || 'fade in';
}
};
}]);

0 comments on commit e55a240

Please sign in to comment.