javascript - Validate a form in AngularJS -
i working on angularjs form validation. below form i have 3 variables toolid , timeremaining , maxqtyobj in javascript file , want validate form fields " tool id " , " time remaining " 2 variables i.e. field toold id should equal variable toolid & field time remaining should less variable timeremaining. and show alert when user enter values qty fields greater value stored in maxqtyobj contains sx & qty. if user clicks on yes, proceed or else cancel process. please help. i solved problem using ng-blur attribute. on ng-blur of elements defined function , set boolean values variables inside these function. if true proceed in ng-click of defined function.