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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -