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

39 lines (33 loc) 1.06 kB
angular .module('menuDemoBasic', ['ngMaterial']) .config(function($mdIconProvider) { $mdIconProvider .iconSet("call", 'img/icons/sets/communication-icons.svg', 24) .iconSet("social", 'img/icons/sets/social-icons.svg', 24); }) .controller('BasicDemoCtrl', function DemoCtrl($mdDialog) { var originatorEv; this.openMenu = function($mdMenu, ev) { originatorEv = ev; $mdMenu.open(ev); }; this.notificationsEnabled = true; this.toggleNotifications = function() { this.notificationsEnabled = !this.notificationsEnabled; }; this.redial = function() { $mdDialog.show( $mdDialog.alert() .targetEvent(originatorEv) .clickOutsideToClose(true) .parent('body') .title('Suddenly, a redial') .textContent('You just called a friend; who told you the most amazing story. Have a cookie!') .ok('That was easy') ); originatorEv = null; }; this.checkVoicemail = function() { // This never happens. }; });