daohassane / ng-container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ng-maintainer

When your application is in maintenance mode, a custom view will be displayed for all requests into your application.

contributors npm version

Table of contents

Some functionality is missing visit wiki-page

Installation

To install this library, run :

$ npm install ng-maintainer --save

Consuming library

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

Development

License

MIT © Martian Geeks

About

License:MIT License


Languages

Language:TypeScript 92.3%Language:JavaScript 4.4%Language:CSS 1.9%Language:HTML 1.4%