Angular 2中的进度条,我已经尝试过此代码,但是有人提出错误请帮助解决此问题
var myApp = angular.module('myApp',[]);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});
function MyCtrl($scope) {
$scope.step = 1;
$scope.next = function(){
$scope.step++;
};
}
function MyCtrl1($scope) {
$scope.step1 = 10;
};
<div ng-controller="MyCtrl">{{step}} <br>
<progress value="{{step*1}}" max="10"></progress>
<div ng-controller="MyCtrl1">{{step1}} <br>
<a ng-click="next()">next</a>
</div>