Angular 7 Validate current card but not other cards in the form

15 views
Skip to first unread message

Gina B

unread,
Dec 20, 2019, 1:29:53 PM12/20/19
to Angular and AngularJS discussion
wonder if someone can give me some guidance. I am using boostrap card html to display a list of information and some inputs/dropdowns using an ngFor loop. I am struggling to figure out how to do validation on each card. Today when my validation fires it validates all the cards. I have tried to move the form and ngfor to different sections of the code but all results I have tired lend me to the same result. I end up validating all cards not the card that the user is on.

Sander Elias

unread,
Dec 31, 2019, 4:53:46 AM12/31/19
to Angular and AngularJS discussion
Hi Gina,

It is really hard to help you if you don't give us a sample what you are trying to do.
Please use stackBlitz to create a sample.

Regards
Sander
Reply all
Reply to author
Forward
0 new messages