@4geit/ngx-auth-module
authentication module for angular that shows a login and register pages
Installation
- A recommended way to install @4geit/ngx-auth-module is through npm package manager using the following command:
npm i @4geit/ngx-auth-module --save
Or use yarn
using the following command:
yarn add @4geit/ngx-auth-module
- You need to import the
NgxAuthModule
class in whatever module you want in your project for instanceapp.module.ts
as follows:
import { NgxAuthModule } from '@4geit/ngx-auth-module';
And you also need to add the NgxAuthModule
module within the @NgModule
decorator as part of the imports
list:
@NgModule({
// ...
imports: [
// ...
NgxAuthModule,
// ...
],
// ...
})
export class AppModule { }