{"id":13808762,"url":"https://github.com/sibiraj-s/ngx-notifier","last_synced_at":"2025-08-07T15:20:22.735Z","repository":{"id":31457407,"uuid":"231761443","full_name":"sibiraj-s/ngx-notifier","owner":"sibiraj-s","description":"🔔 A Simple Notification Service for Angular applications","archived":false,"fork":false,"pushed_at":"2025-04-26T20:07:35.000Z","size":6139,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-28T19:59:16.983Z","etag":null,"topics":["anuglar","bootstrap","ngx-notifier","notifications"],"latest_commit_sha":null,"homepage":"https://sibiraj-s.github.io/ngx-notifier/","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":"Unmaintained","scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sibiraj-s.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["sibiraj-s"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2020-01-04T12:44:22.000Z","updated_at":"2025-04-26T20:07:39.000Z","dependencies_parsed_at":"2023-01-14T19:04:55.655Z","dependency_job_id":"4db82bdd-26e8-45c1-b62b-268d648b547f","html_url":"https://github.com/sibiraj-s/ngx-notifier","commit_stats":{"total_commits":137,"total_committers":4,"mean_commits":34.25,"dds":0.08759124087591241,"last_synced_commit":"cb1c9f629c87cb925f365f30d7be2566ef995128"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibiraj-s%2Fngx-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibiraj-s%2Fngx-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibiraj-s%2Fngx-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sibiraj-s%2Fngx-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sibiraj-s","download_url":"https://codeload.github.com/sibiraj-s/ngx-notifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251380914,"owners_count":21580338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anuglar","bootstrap","ngx-notifier","notifications"],"created_at":"2024-08-04T01:01:51.333Z","updated_at":"2025-08-07T15:20:22.704Z","avatar_url":"https://github.com/sibiraj-s.png","language":"TypeScript","funding_links":["https://github.com/sponsors/sibiraj-s"],"categories":["Third Party Components"],"sub_categories":["Notifications"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/sibiraj-s/ngx-notifier\"\u003e\n   \u003cimg src=\"./assets/angular.png\" alt=\"angular\" width=\"350\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003eNgxNotifier\u003c/h1\u003e\n\u003cp align=\"center\"\u003eA Simple Notification Service for Angular Applications\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/sibiraj-s/ngx-notifier/actions\"\u003e\n    \u003cimg alt=\"Tests Status\" src=\"https://github.com/sibiraj-s/ngx-notifier/workflows/Tests/badge.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/ngx-notifier\"\u003e\n    \u003cimg alt=\"npm version\" src=\"https://img.shields.io/npm/v/ngx-notifier.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/ngx-notifier\"\u003e\n    \u003cimg alt=\"npm downloads\" src=\"https://img.shields.io/npm/dm/ngx-notifier.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/sibiraj-s/ngx-notifier/blob/master/LICENSE\"\u003e\n    \u003cimg alt=\"license\" src=\"https://img.shields.io/npm/l/ngx-notifier.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Getting Started\n\nngx-notifier is a simple notification service for Angular applications and is meant to be simple with limited features.\n\nIf you are looking for angularjs(1.x) version, Try [angularjs-toast][angularjs-toast]\n\n### Installation\n\nInstall via Package managers such as [npm][npm] or [yarn][yarn]\n\n```bash\nnpm install ngx-notifier --save\n# or\nyarn add ngx-notifier\n```\n\n### Usage\n\nImport `provideAnimations` in your app.config to enable required animations\n\n```typescript\nimport { ApplicationConfig } from '@angular/core';\nimport { provideAnimations } from '@angular/platform-browser/animations';\n\nexport const appConfig: ApplicationConfig = {\n  providers: [provideAnimations()],\n};\n```\n\nThen, import `NgxNotifier` in your app.component.ts\n\n```ts\nimport { NgxNotifier, NgxNotifierService } from 'ngx-notifier';\n\n@Component({\n  selector: 'app-root',\n  standalone: true,\n  imports: [NgxNotifier],\n  templateUrl: './app.html',\n})\nexport class AppComponent {\n  constructor(private ngxNotifierService: NgxNotifierService) {}\n\n  createNotification() {\n    this.ngxNotifierService.createToast(message, style, duration);\n  }\n}\n```\n\nThen, add the `ngx-notifier` component in your app.component.html\n\n```html\n\u003cngx-notifier\u003e\u003c/ngx-notifier\u003e\n```\n\n#### Create a toast\n\n```ts\nthis.ngxNotifierService.createToast(message, style, duration);\n```\n\n- **message** message to be sent as notification\n- **style** notification style, which can be the following `success|danger|warning|info`. Default is `info`\n- **duration** in milliseconds, timeout for the notification\n\n#### Clear all toasts\n\n```ts\nthis.ngxNotifierService.clear();\n```\n\n#### Clear the last toast\n\n```ts\nthis.ngxNotifierService.clearLast();\n```\n\n### Notifier Component\n\nNotifier component accepts\n\n```html\n\u003cngx-notifier\n  [allowDuplicates]=\"true\"\n  [allowHTML]=\"false\"\n  [className]=\"myCustomClassName\"\n  [duration]=\"5000\"\n  [disableAnimations]=\"false\"\n  [dismissOnClick]=\"false\"\n  [insertOnTop]=\"true\"\n  [max]=\"5\"\n\u003e\n\u003c/ngx-notifier\u003e\n```\n\n- **allowDuplicates:** whether to allow duplicate messages in notifications\n- **allowHTML** whether to allow or display HTML as it is, HTML will be sanitized and any JS will be maked as unsafe.\n- **className** custom class for notifications\n- **disableAnimations** whether to enable or disable animations for the toast.\n- **dismissOnClick:** dismiss notification on click\n- **duration** time in milliseconds for dismissing notifications, default is 60s\n- **insertOnTop** whether to insert notification on top or bottom\n- **max:** maximum number of notifications to be displayed\n\n### Demo\n\nDemo at stackblitz [ngx-notifier](https://stackblitz.com/edit/ngx-notifier)\n\n[npm]: https://www.npmjs.com/\n[yarn]: https://yarnpkg.com/lang/en/\n[angularjs-toast]: https://github.com/sibiraj-s/angularjs-toast\n[wiki]: https://github.com/sibiraj-s/ngx-notifier/wiki/ngx-notifier\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsibiraj-s%2Fngx-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsibiraj-s%2Fngx-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsibiraj-s%2Fngx-notifier/lists"}