This is abstract to Authentication based in project https://github.com/zendframework/zend-authentication
import { NgModule } from '@angular/core';
import { IonicApp, IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';
import { UrlResolverModule } from '@mbamobi/url-resolver';
import { AuthenticationHttpModule } from '@mbamobi/authentication';
const Routes = {
'auth': {
'url': 'http://example.com/auth'
}
};
@NgModule({
declarations: [
MyApp
],
imports: [
IonicModule.forRoot(MyApp),
UrlResolverModule.initialize(Routes),
AuthenticationHttpModule.initialize()
],
bootstrap: [IonicApp],
entryComponents: [
MyApp
]
})
export class AppModule {}
Contributing
See CONTRIBUTING.md