Discussion:
[AngularJS] How to show checkbox checked & unchecked according to value from webapi?
Aman Sharma
2018-12-06 10:30:50 UTC
Permalink
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?
--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Sander Elias
2018-12-08 08:05:07 UTC
Permalink
Hi Aman

Here is an sample
<https://stackblitz.com/edit/angular-qogp8k?file=src%2Fapp%2Fapp.component.ts>
This is using reactive forms module, If you are using template driven
forms, use [(ngModel)] instead.

Regards
Sander
​
--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Loading...