Trying to use ionic-cloud’s auth module, I get this error
: No provider for Auth!
My page simply looks like
login(){
this.auth.login('google').then(
()=>{
console.log("Hello");
}
);
}
Trying to use ionic-cloud’s auth module, I get this error
: No provider for Auth!
My page simply looks like
login(){
this.auth.login('google').then(
()=>{
console.log("Hello");
}
);
}
Bump! Getting the same issue.
Have you added this Auth
to your AppModule
's providers
array?
Yes, that results in
deps is undefined
You need to setup your project before using it. http://docs.ionic.io/setup.html
@NgModule({
declarations: [ ... ],
imports: [
IonicModule.forRoot(MyApp),
CloudModule.forRoot(cloudSettings)
],
bootstrap: [IonicApp],
entryComponents: [ ... ],
providers: [ ... ]
})
registers the provider.