I have one button that have ng-click, like this
<button type="button" class="btn btn-primary pull-right push-right-5" role="button" ng-click="model.assignToProjects()">GO</button>
What i need is to add new action to ng-click, like this
ng-click="submitted=true"
The problem is i have application that is to big and i need to have some common event that will do first event, if it is valid allow second event, that can be anything :( Here how my HTML should look like
<button type="button" class="btn btn-primary pull-right push-right-5" role="button" ng-click="submitted=true ; model.assignToProjects();">GO</button>
Is it possible to do this way or i must rewrite my entire logic :(