Skip to content

zellotec/authentication

 
 

Repository files navigation

AuthenticationModule

This is abstract to Authentication based in project https://github.com/zendframework/zend-authentication

Using AuthenticationModule or AuthenticationHttpModule in an Ionic 2 app

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