ng-noty
is a service for displaying notifications.
$ npm install --save ng-noty
ng-noty
is based on Noty 3.1.x
import {Component} from '@angular/core';
import {NgNoty, NotyOptions} from "ng-noty";
@Component({
selector: 'ng-noty-component-example',
template: `
<button (click)="openNgNoty()" aria-label="Show an example ng-noty">
Show ng-noty
</button>
`,
})
export class NgNotyComponentExample {
constructor(public ngNoty: NgNoty) {}
openNgNoty() {
this.ngNoty.create(<NotyOptions>{
text: 'Some notification text'
}).show();
}
}