I tried to toggle a class of body when a button is clicked by using the AngularJS ngClass directive.
I have added a variable ng-model="add" to the button:
<md-button aria-label="Add" class="md-icon-button" ng-model="wrong">
<md-icon md-svg-icon="other:add" md-menu-align-target></md-icon>
</md-button>
Then I added to the body the classes to toggle:
<body class="ctr-hidden" ng-class="{'ctr-show': add, 'ctr-hidden': add}">
but it does not work, because it adds both the class 'ctr-show' and class 'ctr-hidden'.