{"id":13729240,"url":"https://github.com/pascaliske/ngx-notifications","last_synced_at":"2025-05-08T01:32:00.130Z","repository":{"id":38211355,"uuid":"144643910","full_name":"pascaliske/ngx-notifications","owner":"pascaliske","description":"Simple notifications module for Angular.","archived":true,"fork":false,"pushed_at":"2023-06-14T12:32:46.000Z","size":5856,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T01:22:11.658Z","etag":null,"topics":["angular","library","ngx","notifications","typescript"],"latest_commit_sha":null,"homepage":"https://pascaliske.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pascaliske.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-08-13T23:25:55.000Z","updated_at":"2023-06-19T14:58:20.000Z","dependencies_parsed_at":"2024-01-11T00:01:51.901Z","dependency_job_id":"17bd1194-7ef9-4939-919f-03ccafc86a4b","html_url":"https://github.com/pascaliske/ngx-notifications","commit_stats":{"total_commits":1440,"total_committers":8,"mean_commits":180.0,"dds":"0.48888888888888893","last_synced_commit":"e31973330d95c63e8b557c5c78343bfcf985eff3"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascaliske%2Fngx-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascaliske%2Fngx-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascaliske%2Fngx-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascaliske%2Fngx-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pascaliske","download_url":"https://codeload.github.com/pascaliske/ngx-notifications/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252981585,"owners_count":21835454,"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":["angular","library","ngx","notifications","typescript"],"created_at":"2024-08-03T02:00:57.303Z","updated_at":"2025-05-08T01:31:59.707Z","avatar_url":"https://github.com/pascaliske.png","language":"TypeScript","funding_links":[],"categories":["UI Components","Third Party Components"],"sub_categories":["Notification","Notifications"],"readme":"# `@pascaliske/ngx-notifications`\n\n[![npm (scoped)](https://img.shields.io/npm/v/@pascaliske/ngx-notifications.svg?style=flat-square)](https://www.npmjs.com/package/@pascaliske/ngx-notifications) [![GitHub Tag](https://img.shields.io/github/tag/pascaliske/ngx-notifications.svg?style=flat-square)](https://github.com/pascaliske/ngx-notifications) [![Build Status](https://img.shields.io/github/workflow/status/pascaliske/ngx-notifications/Test%20package/master?label=test\u0026style=flat-square)](https://github.com/pascaliske/ngx-notifications/actions) [![Awesome Badges](https://img.shields.io/badge/badges-awesome-green.svg?style=flat-square)](https://github.com/Naereen/badges)\n\n## Installation\n\nTo install the module use the following command:\n\n```bash\n$ ng add @pascaliske/ngx-notifications\n```\n\n## Usage\n\n1. Import the module into your `AppModule`:\n\n    ```typescript\n    import { NgModule } from '@angular/core'\n    import { BrowserModule } from '@angular/platform-browser'\n    import { NotificationsModule } from '@pascaliske/ngx-notifications'\n    import { AppComponent } from './app.component'\n\n    @NgModule({\n        bootstrap: [AppComponent],\n        declarations: [AppComponent],\n        imports: [BrowserModule, NotificationsModule.forRoot()],\n        providers: [],\n    })\n    export class AppModule {}\n    ```\n\n2. Add the following line to your app's template:\n\n    ```html\n    \u003ccmp-notifications\u003e\u003c/cmp-notifications\u003e\n    ```\n\n3. Access the `NotificationsService` in your components:\n\n    ```typescript\n    import { Component, OnInit } from '@angular/core'\n    import { NotificationsService } from '@pascaliske/ngx-notifications'\n\n    @Component({\n        selector: 'cmp-root',\n        templateUrl: './app.component.html',\n        styleUrls: ['./app.component.scss'],\n    })\n    export class AppComponent implements OnInit {\n        public constructor(private notificationService: NotificationsService) {}\n\n        public ngOnInit(): void {\n            this.notificationService.info('Hello World!')\n        }\n    }\n    ```\n\n4. Style the notifications with your own styles:\n\n    ```scss\n    .cmp-notifications {\n        // the notifications list\n    }\n\n    .cmp-notification {\n        // a single notification\n\n        \u0026--info {\n            // info styles\n        }\n\n        \u0026--success {\n            // success styles\n        }\n\n        \u0026--warning {\n            // warning styles\n        }\n\n        \u0026--error {\n            // error styles\n        }\n    }\n    ```\n\n## License\n\nMIT © [Pascal Iske](https://pascaliske.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascaliske%2Fngx-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpascaliske%2Fngx-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascaliske%2Fngx-notifications/lists"}