0.1.0 • Published 5 years ago

ngx-bootstrap-notify v0.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

ngx-bootstrap-notify - Angular library built with ❤ using ngx-library yeoman generator.

npm version, Build Status Coverage Status dependency Status devDependency Status

Demo

View all the directives in action at https://ScripTerasu.github.io/ngx-bootstrap-notify

Dependencies

  • Angular (requires Angular 2 or higher, tested with 2.0.0)

Installation

Install above dependencies via npm.

Now install ngx-bootstrap-notify via:

npm install --save ngx-bootstrap-notify

SystemJS

Note:If you are using SystemJS, you should adjust your configuration to point to the UMD bundle. In your systemjs config file, map needs to tell the System loader where to look for ngx-bootstrap-notify:

map: {
  'ngx-bootstrap-notify': 'node_modules/ngx-bootstrap-notify/bundles/ngx-bootstrap-notify.umd.js',
}

Once installed you need to import the main module:

import { LibModule } from 'ngx-bootstrap-notify';

The only remaining part is to list the imported module in your application module. The exact method will be slightly different for the root (top-level) module for which you should end up with the code similar to (notice NgxBootstrapNotifyModule .forRoot()):

import { LibModule } from 'ngx-bootstrap-notify';

@NgModule({
  declarations: [AppComponent, ...],
  imports: [NgxBootstrapNotifyModule.forRoot(), ...],  
  bootstrap: [AppComponent]
})
export class AppModule {
}

Other modules in your application can simply import NgxBootstrapNotifyModule:

import { NgxBootstrapNotifyModule } from 'ngx-bootstrap-notify';

@NgModule({
  declarations: [OtherComponent, ...],
  imports: [NgxBootstrapNotifyModule, ...], 
})
export class OtherModule {
}

Usage

License

Copyright (c) 2018 Sebastian Almendra. Licensed under the MIT License (MIT)

0.1.0

5 years ago