1.2.5 • Published 6 years ago

angular2-notification-bar v1.2.5

Weekly downloads
17
License
MIT
Repository
github
Last release
6 years ago

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

1.2.5

6 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago