Is there a simple declarative way (without a additional function in the $scope) to marked clicked element with AngularJS?
e.g. I have a button which I want to marked as clicked/checked.
<button ng-model="form.btn" ng-click=" // do stuff here to add a class or attr ">Go</button>
I was able to achieve this with external function but I am looking for a declarative way / all in HTML template.