mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-25 16:12:44 +00:00
37 lines
1.0 KiB
JavaScript
37 lines
1.0 KiB
JavaScript
|
|
angular.module('sidenavDemo1', ['ngMaterial'])
|
|
|
|
.controller('AppCtrl', function($scope, $timeout, $mdSidenav, $log) {
|
|
$scope.toggleLeft = function() {
|
|
$mdSidenav('left').toggle()
|
|
.then(function(){
|
|
$log.debug("toggle left is done");
|
|
});
|
|
};
|
|
$scope.toggleRight = function() {
|
|
$mdSidenav('right').toggle()
|
|
.then(function(){
|
|
$log.debug("toggle RIGHT is done");
|
|
});
|
|
};
|
|
})
|
|
|
|
.controller('LeftCtrl', function($scope, $timeout, $mdSidenav, $log) {
|
|
$scope.close = function() {
|
|
$mdSidenav('left').close()
|
|
.then(function(){
|
|
$log.debug("close LEFT is done");
|
|
});
|
|
|
|
};
|
|
})
|
|
|
|
.controller('RightCtrl', function($scope, $timeout, $mdSidenav, $log) {
|
|
$scope.close = function() {
|
|
$mdSidenav('right').close()
|
|
.then(function(){
|
|
$log.debug("close RIGHT is done");
|
|
});
|
|
};
|
|
});
|