- name="gender" [(ngModel)]="model.gender" #gender="ngModel" required>
- "f.submitted && gender.invalid">"gender.errors.required">Gender is required
- >Submit
Loading
Know the answer? Post it. Somebody with the same question will find it here.

Select Language
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Laxmidhar SahooRank #383 · 6.6K reputationPosted Apr 15, 2019, 8:35 PM EDT
AngularJS Select Box / Dropdown List Validation Example