How to show checkbox checked & unchecked according to value from webapi?

47 views
Skip to first unread message

Aman Sharma

unread,
Dec 6, 2018, 6:16:04 AM12/6/18
to Angular and AngularJS discussion
I am using checkbox in my form to save value "True & False". How to show checkbox checked if value stored is true while editing record?

Sander Elias

unread,
Dec 8, 2018, 3:05:07 AM12/8/18
to Angular and AngularJS discussion

Hi Aman

Here is an sample This is using reactive forms module, If you are using template driven forms, use [(ngModel)] instead.

Regards
Sander

Reply all
Reply to author
Forward
0 new messages