UNPKG

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

18 lines (14 loc) 466 B
angular.module('whiteframeDirectiveUsage', ['ngMaterial']) .controller('DemoCtrl', function($interval) { this.elevation = 1; this.showFrame = 3; this.nextElevation = function() { if (++this.elevation == 25) { this.elevation = 1; } }; $interval(this.nextElevation.bind(this), 500); this.toggleFrame = function() { this.showFrame = this.showFrame == 3 ? -1 : 3; }; });