Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .directive('graph', ['$document', '$animate', function ($document, $animate) {
- return {
- restrict: 'A',
- link: function (scope, element, attributes) {
- var newClass = {height: attributes['height']}
- $animate.addClass(element, newClass);
- }
- };
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement