angular-toastify-ngx
v1.0.0
Published
React-Toastify, rebuilt for Angular. Same API, native standalone components.
Maintainers
Readme
angular-toastify-ngx
React-Toastify, rebuilt for Angular.
Same toast() API, same look, native standalone components. No React, no zone.js requirement.
npm install angular-toastify-ngximport { Component } from '@angular/core';
import { ToastContainer, toast } from 'angular-toastify-ngx';
@Component({
selector: 'app-root',
imports: [ToastContainer],
template: `
<button (click)="notify()">Notify</button>
<toast-container />
`,
})
export class App {
notify() {
toast('Wow so easy!');
}
}Peer range: Angular 19–22. Styles ship with <toast-container />.
toast.success('Saved');
toast.error('Failed');
await toast.promise(save(), {
pending: 'Saving…',
success: 'Saved',
error: 'Could not save',
});See the repository README for the full API.
