@flosrn wrote:
Hello, I want enable register button only when the toglle condition of use is checked like this :
register.html :
<ion-item class="CGU" no-lines> <ion-label class="CGU">I accept the conditions of use</ion-label> <ion-toggle color="secondary" [checked]="isToggled" (ionChange)="notify()"></ion-toggle> </ion-item> <button ion-button class="login" color="bleu" type="submit" (click)="register()" [disabled]="isToggled != true">Register</button>
register.ts :
public isToggled: boolean = false; constructor(...) {...} notify() { this.isToggled = !this.isToggled; }
But it not working…
Nobody knows how to do it please?
Posts: 1
Participants: 1