angular-material-npfixed
Version:
The Angular Material project is an implementation of Material Design in Angular.js. This project provides a set of reusable, well-tested, and accessible Material Design UI components. Angular Material is supported internally at Google by the Angular.js, M
26 lines (21 loc) • 619 B
JavaScript
angular
.module('progressCircularDemo1', ['ngMaterial'], function($mdThemingProvider) {
$mdThemingProvider.theme('docs-dark', 'default')
.primaryPalette('yellow')
.dark();
})
.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);
}
]);