' + bio + '
' + + '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){
-
- $scope.showDocsNav = false;
- $scope.showMainNav = false;
- $scope.showMenu = false;
-
- // TOGGLE MAIN NAV (TOP) ON MOBILE
- $scope.toggleDocsMenu = function(event) {
- event.preventDefault();
- $scope.showDocsNav = !$scope.showDocsNav;
- };
-
- // TOGGLE DOCS NAV
- $scope.toggleMainMenu = function(event) {
- event.preventDefault();
- $scope.showMainNav = !$scope.showMainNav;
- };
-
- // TOGGLE DOCS VERSION & LANGUAGE
- $scope.toggleVersionMenu = function(event) {
- event.preventDefault();
- $scope.showMenu = !$scope.showMenu;
- };
-
-
- /*
- * Code Switcher
- *
- */
-
- $scope.language = 'es5';
- var $codeBoxes = $('.code-box');
-
- if($codeBoxes.length) {
- //UPDATE ALL CODE BOXES
- $codeBoxes.each(function(index, codeBox) {
- //REGISTER ELEMENTS
- var $codeBox = $(codeBox);
- var $examples = $codeBox.find('.prettyprint');
- var $firstItem = $($examples[0]);
- var $header = $("' + bio + '
' + - '