Commits
Tasos Bekos committed 365573ab247
feat(progressbar): add `max` attribute & support transclusion
* General refactor. Move logic to controller.
* Remove `onFull` & `onEmpty` handlers.
* Remove automatic types and stacked types.
* `progress` & `bar` transclude content to support text & extra elements.
BREAKING CHANGE: The onFull/onEmpty handlers & auto/stacked types have been removed.
To migrate your code change your markup like below.
Before:
<progress percent="var" class="progress-warning"></progress>
After:
<progressbar value="var" type="warning"></progressbar>
and for stacked instead of passing array/objects you can do:
<progress><bar ng-repeat="obj in objs" value="obj.var" type="{{obj.type}}"></bar></progress>