I'm trying to add validations to my Angular js code. I'm using div tags instead of form. Do I need to change something in .js or should I just add required in my input tag
<input required type="..." name="..." ng-model="..." />
TIA
I'm trying to add validations to my Angular js code. I'm using div tags instead of form. Do I need to change something in .js or should I just add required in my input tag
<input required type="..." name="..." ng-model="..." />
TIA
Copyright © 2021 Jogjafile Inc.
To use a
<div>element instead of a<form>element, use theng-formdirective:For more information: