When your application is in maintenance mode, a custom view will be displayed for all requests into your application.
Some functionality is missing visit wiki-page
To install this library, run :
$ npm install ng-maintainer --save
You can import library in any Angular application by running:
$ npm install ng-maintainer --save
and then from your Angular AppModule:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { NgxPermissionsModule } from 'ngx-permissions';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// Specify your library as an import
NgMaintainerModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
SharedModule
If you use a SharedModule that you import in multiple other feature modules, you can export the NgxPermissionsModule to make sure you don't have to import it in every module.
@NgModule({
exports: [
CommonModule,
NgMaintainerModule
]
})
export class SharedModule { }
Usage in templates
MIT © Martian Geeks