37 lines
817 B
JavaScript
37 lines
817 B
JavaScript
/*
|
|
* Apllication Controller
|
|
*
|
|
*/
|
|
|
|
angularIO.controller('AppCtrl', ['$scope', '$mdDialog', '$timeout', function($scope, $mdDialog, $timeout) {
|
|
|
|
$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;
|
|
};
|
|
|
|
/*
|
|
* Prettify Code
|
|
*
|
|
* Finish Rendereding code directives then prettify code
|
|
*/
|
|
|
|
$timeout(prettyPrint, 1);
|
|
}]); |