1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 1× | angular .module('progressCircularDemo1', ['ngMaterial']) .controller('AppCtrl', ['$interval', function($interval) { var self = this; self.activated = true; self.determinateValue = 30; // Iterate every 100ms, non-stop and increment // the Determinate loader. $interval(function() { self.determinateValue += 1; if (self.determinateValue > 100) { self.determinateValue = 30; } }, 100); } ]); |