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

Ion-toggle databinding not shows state after load

$
0
0

@8bhsolutions wrote:

ion-toggle always shows false state on page load, then will toggle to the ngModel databinding value.
Where as if it checked property is bound, and the status is shown correctly on load.

HTML

Toggle slide after load no binding

Typescript

public ngModelState: boolean;
public checkedState: boolean;

constructor(public navCtrl: NavController) {
    this.ngModelState = true;
    this.checkedState = true;
}

How do I get the 2-way data binding to load the view correctly?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70443

Trending Articles