Using AngularJS i need to do a server side validation for a button click event & based upon the result from server call i need to display a particular section of html page using
data-ng-show="resultdataset.length". If resultdataset has records user need to correct the errors & then click submit button. what attribute should i use to make the server call.
<button type="submit" id="btnSubmitForm" ng-click='Validate()' ng-disabled="Config.$invalid || !Config.$dirty"> Save </button>
does ng-click work??
I am submitting form using ng-submit & submitForm() should only be called if there are no records from resultdataset
<form class="form" name="Config" role="form" ng-submit="submitForm()">
Sorry i am new to AngularJS & trying to figure out stuff.