angularjs - Several ng-click on button angular? -


i have 1 button have ng-click, this

 <button type="button" class="btn btn-primary pull-right push-right-5" role="button" ng-click="model.assigntoprojects()">go</button> 

what need add new action ng-click, this

ng-click="submitted=true" 

the problem have application big , need have common event first event, if valid allow second event, can :( here how html should like

 <button type="button" class="btn btn-primary pull-right push-right-5" role="button" ng-click="submitted=true ; model.assigntoprojects();">go</button> 

is possible way or must rewrite entire logic :(


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -