I try to add firebase login in ionic framework.
The chrome web works fine. But when I simulate the app in iOS, the login controller did not be initialized. I found that the "resolve" did not return the result. Could any one help me fix the issue? Thanks.
.state('login', {
url: "/login",
templateUrl: "templates/login.html",
controller: 'LoginCtrl',
resolve: {
// controller will not be loaded until $waitForAuth resolves
// Auth refers to our $firebaseAuth wrapper in the example above
"currentAuth": ["Auth",
function (Auth) {
console.log("Got auth result!");
// $waitForAuth returns a promise so the resolve waits for it to complete
return Auth.$waitForAuth();
}]
}
})