-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Add progress bar component #187
Comments
Hi Tasos, .directive('progressbar', ['$transition', function($transition) { link: function(scope, element) { var oldWidth = scope.width; element.css('width', oldWidth + '%'); scope.$watch('width', function(width) { $transition(element, {width: width + '%'}); oldWidth = width; }); } }; }]); On 4 March 2013 10:45, Tasos Bekos notifications@github.com wrote:
|
Yeh, I was thinking about the progress bar a bit for a moment but at the time I thought it is not worth it. But now with the $transitions support we've got actually something to offer. I guess now this is somehow on the bordeline, as alert. But I would say let's open a PR and see. In any case we need to make sure class names don't make it into directive's JS code. |
Just want to mention here that when use <progress ng-hide="$parent.updated"></progress> |
I have created a directive for progress bars based on twitter's bootstrap component.
I wanted to be a wrapper for bootstrap's html with value binding, animation changes and support for stacked bars.
It is still has bugs but i made an early plnkr to see if you are interested in this. See here: http://plnkr.co/edit/FDi7IHEcD4VjuJ7wWwzK?p=preview
@angular-ui I will appreciate your opinion on this, and if it is OK for this project, i can prepare a PR.
The text was updated successfully, but these errors were encountered: