6.0.10 • Published 2 months ago

@acpaas-ui/ngx-notifications v6.0.10

Weekly downloads
12
License
-
Repository
-
Last release
2 months ago

@acpaas-ui/ngx-notifications

Module that allows the use of a simple notification to display success, error or warning messages.

Usage

Import the module into your application:

import { NotificationsModule } from '@acpaas-ui/ngx-notifications';

@NgModule({
    imports: [
        NotificationsModule,
        BrowserAnimationsModule
    ]
})
export class AppModule {}

Note that you manually have to import the BrowserAnimationsModule in your root application module.

Use the notification in a component:

import { NotificationsService } from '@acpaas-ui/ngx-notifications';

@Component({...})
export class AppComponent {

    constructor(private service: NotificationsService) {}

    showInfoNotificationNotification() {
      this.notificationsService.info('This is the body of an info notification.', 'Info');
    }

    showSuccessNotification() {
      this.notificationsService.success('This is the body of a success notification.', 'Success');
    }

    showWarningNotification() {
      this.notificationsService.warning('This is the body of a warning notification', 'Warning');
    }

    showErrorNotification() {
      this.notificationsService.error('This is the body of an error notification', 'Error');
    }
}

Our notifications package is built on ngx-toastr. All available options are listed on the ngx-toastr NPM page.

6.0.10

2 months ago

6.0.9

2 months ago

6.0.6

4 months ago

6.0.5

4 months ago

6.0.3

9 months ago

6.0.2

9 months ago

6.0.4

8 months ago

6.0.0

11 months ago

6.0.0-beta.0

1 year ago

7.0.0-beta.1

1 year ago

5.0.1

3 years ago

5.0.0

3 years ago

4.6.1

3 years ago

4.6.0

3 years ago