SyntaxFix
Write A Post
Hire A Developer
Questions
There is a simple and clean way of doing this with only directives.
<div ng-class="{'class-name': clicked}" ng-click="clicked = !clicked"></div>