1
我已经创建了多个订单,现在我要确认所有这些 订单,但之前,除非所有的订单得到确认我必须表明 进度条,并有显示有序的状态确认如何使用角度js来处理多个请求来实现进度条?
即假设我有确认10个订单,然后1/10然后2/10然后3/10 ... 10/10在后台确认订单的状态。
下面我有一个例子,但它并不满足于需求..
angular.module("app", []) .controller("main", ['$scope',
function($scope) {
$scope.value = 10
$scope.items = [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100] }]) .directive('progressbar', [function() {
return {
restrict: 'A',
scope: {
'progress': '=progressbar'
},
controller: function($scope, $element, $attrs) {
$element.progressbar({
value: $scope.progress
})
$scope.$watch(function() {
$element.progressbar({value: $scope.progress})
})
}
} }])
我不必使用外部库...我在谷歌搜索,发现使用ng风格,我们可以实现进度条,但我是新的角度多数民众赞成我不能够实现它...帮助Appaieted –
我不认为angularjs提供了所有这些。您需要使用其他引导进度条。 – eronax59