all files / app/main/components/material-docs/demo-partials/progressCircular/demoBasicUsage/ script.js

12.5% Statements 1/8
0% Branches 0/2
0% Functions 0/2
12.5% Lines 1/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22                                          
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);
    }
  ]);