Is there an isOpen property of the <md-menu> directive?
3 answers
@Sarhanis , . Angular $mdMenuOpen, $mdMenuClose :
$scope.$on('$mdMenuOpen', function(event, menu) {
console.log('opening menu...', event, menu);
});
$scope.$on('$mdMenuClose', function(event, menu) {
console.log('closing menu...', event, menu);
});
+3
.
jQuery Angular. DOM, jQuery , Angular .
HTML, ngClass. doco ngClass: https://docs.angularjs.org/api/ng/directive/ngClass
Showing and hiding elements should be done using ngShow or ngIf: https://docs.angularjs.org/api/ng/directive/ngShow https://docs.angularjs.org/api/ng/directive/ngIf
They should work with the scope variables that you defined in your controllers.
0