Created
July 20, 2016 01:45
-
-
Save GibranPolonsky/0ae18e2035c879c4746cf15385cb6493 to your computer and use it in GitHub Desktop.
Angular Controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var RutBus; | |
(function (RutBus) { | |
var MainCtrl = (function () { | |
function MainCtrl($mdSidenav, $state) { | |
this.selectedMenu = 'dashboard'; | |
this.$mdSidenav = $mdSidenav; | |
this.$state = $state; | |
} | |
MainCtrl.prototype.toogleSideNav = function () { | |
this.$mdSidenav('left').toggle(); | |
}; | |
MainCtrl.prototype.goTo = function( route ){ | |
// this.$mdSidenav('left').toggle(); | |
this.$state.go(route); | |
this.selectedMenu = route; | |
} | |
MainCtrl.$inject = ['$mdSidenav', '$state']; | |
return MainCtrl; | |
}()); | |
RutBus.MainCtrl = MainCtrl; | |
})(RutBus || (RutBus = {})); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment