var angularIO = angular.module('angularIOApp', ['ngMaterial']) .config(function($mdThemingProvider) { $mdThemingProvider.theme('default') .primaryPalette('blue', { 'default': '700', // by default use shade 400 from the pink palette for primary intentions 'hue-1': '100', // use shade 100 for the md-hue-1 class 'hue-2': '600', // use shade 600 for the md-hue-2 class 'hue-3': 'A100' // use shade A100 for the md-hue-3 class }) // If you specify less than all of the keys, it will inherit from the // default shades .accentPalette('purple', { 'default': '200' // use shade 200 for default, and keep all other shades the same }); }); /* * Apllication Controller * */ angularIO.controller('AppCtrl', ['$scope', '$mdDialog', function($scope, $mdDialog){ // TOGGLE MAIN NAV (TOP) ON MOBILE $scope.toggleDocsMenu = function(event) { $scope.showDocsNav = !$scope.showDocsNav; }; // TOGGLE DOCS NAV $scope.toggleMainMenu = function(event) { $scope.showMainNav = !$scope.showMainNav; }; // TOGGLE DOCS VERSION & LANGUAGE $scope.toggleVersionMenu = function(event) { $scope.showMenu = !$scope.showMenu; }; // SHOW FULL ABOUT US PAGE BIO $scope.showBio = function (event) { var person = angular.element(event.currentTarget); var bio = person.text(); var name = person.attr('data-name'); //var pic = person.data('data-pic'); $mdDialog.show( $mdDialog.alert() .title(name) .content(bio) .ariaLabel('Biography') .ok('Close Bio') .targetEvent(event) ); }; // INITIALIZE PRETTY PRINT prettyPrint(); }]);