angular2-notification-bar
TypeScript icon, indicating that this package has built-in type declarations

1.2.5 • Public • Published

Description

This is a simple notification bar component for Angular2.

Inspired by ng-notifications-bar - in angular 1.

Installation

npm install angular2-notification-bar --save

Usage

import { NotificationBarModule } from 'angular2-notification-bar'
import { AppComponent } from './app.component';
 
@NgModule({
    imports: [BrowserModule, FormsModule, NotificationBarModule],
    declarations: [AppComponent],
    bootstrap: [AppComponent]
})
export class AppModule {
}
<notification-bar></notification-bar>
this.notificationBarService.create({ message: 'USER_SAVED', type: NotificationType.Success});

Options

message: string;
type?: NotificationType;
autoHide?: boolean;
hideDelay?: number;
isHtml?: boolean;
allowClose?: boolean;
hideOnHover?: boolean

License

MIT

Package Sidebar

Install

npm i angular2-notification-bar

Weekly Downloads

9

Version

1.2.5

License

MIT

Unpacked Size

123 kB

Total Files

32

Last publish

Collaborators

  • jsrockstar