javascript - validation on angular form submit after ng-click -


i need validate form on ng-click in way

<button type="submit" ng-click="submitted = true">submit</button> 

and have function need call on ng-click like

<button ng-click="logincheck(user)">submit</button>login</button> 

im unable both in 1 ng-click. other sollution can make

or in controller

$scope.logincheck = function(user) { } 


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -