Next Error:
Type 'typeof LoginPage' is not assignable to type 'typeof HomePage'.
Code:
import { LoginPage } from '../pages/login/login';
if(user) {
this.rootPage = HomePage;
} else {
this.rootPage = LoginPage; // Erro nessa linha
}
Next Error:
Type 'typeof LoginPage' is not assignable to type 'typeof HomePage'.
Code:
import { LoginPage } from '../pages/login/login';
if(user) {
this.rootPage = HomePage;
} else {
this.rootPage = LoginPage; // Erro nessa linha
}
Only fix the variable declaration:
import { LoginPage } from '../pages/login/login';
let rootPage:Any;
if(user) {
this.rootPage = HomePage;
} else {
this.rootPage = LoginPage; // Erro nessa linha
}