multiple checkboxes validation - template driven forms

239 views
Skip to first unread message

Angular Queries

unread,
Sep 18, 2022, 2:53:45 AM9/18/22
to Angular and AngularJS discussion
Hi,
Can I validate a group of checkboxes in template driven forms?
Not able to use the reference variable for the checkboxes for validation as I am using *ngFor loop to create the checkboxes.

divine chelladurai

unread,
Sep 18, 2022, 3:25:21 AM9/18/22
to Angular and AngularJS discussion

try the approach mentioned in below snippet
template.html

Screen Shot 2022-09-18 at 12.52.51 PM.png

template.ts


Screen Shot 2022-09-18 at 12.52.05 PM.png
Reply all
Reply to author
Forward
0 new messages