Skip to content

Hydrane/angular2-notification-bar

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •