Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70432

Dynamically Checkbox checked

$
0
0

@ionicjay wrote:

According to the forum suggestion, Code was successfully use for Checked a Checkbox, but when need to get the that checked checkbox value, value getting “null” instead of “true”.
If i toggle that checked checkbox by clicking mouse, then its come with “true” value, but if checkbox checked by code process then it come with “null” value.

HTML Code
<ion-checkbox color=“secondary” slot=“start” [checked]=“isChecked” formControlName=“chkBxRememberMe”>

login.page.ts file code
ngOnInit() { this.isChecked = true; }
userLogin(){ console.log(“Reme”, this.LoginForm.value.chkBxRememberMe); }

Please help me out.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>