You need to use the name of your form, as well as ng-disabled: Here’s a demo on Plunker
<form name="myForm">
<input name="myText" type="text" ng-model="mytext" required />
<button ng-disabled="myForm.$invalid">Save</button>
</form>
More Related Contents:
- How can I conditionally require form inputs with AngularJS?
- Validate fields after user has left a field
- When should I use GET or POST method? What’s the difference between them?
- What characters are allowed in an email address?
- How can I retain HTML form field values in JSP after submitting form to Servlet?
- Preventing form resubmission
- CSS selector for a checked radio button’s label
- Using the HTML5 “required” attribute for a group of checkboxes?
- Disable form auto submit on button click
- Send value of submit button when form gets posted
- How to prevent robots from automatically filling up a form?
- Postman Chrome: What is the difference between form-data, x-www-form-urlencoded and raw
- Better Honeypot Implementation (Form Anti-Spam)
- Clear JSF form input values after submitting
- Manually Set Value for FormBuilder Control
- Angular 2 – large scale application forms’ handling
- Play 2.4: Form: could not find implicit value for parameter messages: play.api.i18n.Messages
- What is & used for
- How to use array of objects for controls in Reactive Forms
- Uploading file using Google Apps Script using HtmlService
- Angular 4 Form FormArray Add a Button to add or delete a form input row
- What is the right way to POST multipart/form-data using curl?
- Can you require two form fields to match with HTML?
- within not entirely working, only the last is processed
- Pass custom options to a symfony2 form
- Delphi Change main form while application is running
- Avoid modal dismiss on enter keypress
- Angularjs – simple form submit
- Add span inside form’s placeholder
- How to keep changed form content when leaving and going back to HTTPS page? (works with HTTP)