I tried something :
I created a project with the following command from the Getting Started :
ionic start MyIonic2Project tutorial --v2 --ts
I added to the tutorial project few lines of code that I use in my main project to see if I will get the same issue :
1 - hello-ionic.html :
<ion-input type="text" [(ngModel)]="t1" style="background-color:lightblue;"></ion-input> <ion-input type="text" [(ngModel)]="t2" style="background-color:lightgreen;"></ion-input>
2 - hello-ionic.ts :
export class HelloIonicPage {
private t1: string;
private t2: string;
private db: Storage = new Storage(SqlStorage);
constructor() {
this.db.get('thing').then((thing: string) => {
this.t1 = "test one";
});
this.t2 = "test two";
}
}
Here is the result :
We don’t see "test one"
in the first input.
However, if I put the focus on the first input "test one"
will appear.
I got this issue when I have updated my project to the beta 4.
Someone can explain why please ?
(Sorry for my english )