{"id":24645117,"url":"https://github.com/thepatrickniyo/ng-toaster-demo","last_synced_at":"2026-05-16T23:01:30.954Z","repository":{"id":107053787,"uuid":"362905836","full_name":"thepatrickniyo/ng-toaster-demo","owner":"thepatrickniyo","description":"Codes serves to demo the implementation of ng-toaster in angular ","archived":false,"fork":false,"pushed_at":"2021-04-29T19:29:06.000Z","size":262,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T19:56:12.365Z","etag":null,"topics":["angular","ngx-toastr"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thepatrickniyo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-04-29T18:07:10.000Z","updated_at":"2021-04-29T19:33:04.000Z","dependencies_parsed_at":"2023-05-05T11:00:58.662Z","dependency_job_id":null,"html_url":"https://github.com/thepatrickniyo/ng-toaster-demo","commit_stats":null,"previous_names":["thepatrickniyo/ng-toaster-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepatrickniyo%2Fng-toaster-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepatrickniyo%2Fng-toaster-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepatrickniyo%2Fng-toaster-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepatrickniyo%2Fng-toaster-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thepatrickniyo","download_url":"https://codeload.github.com/thepatrickniyo/ng-toaster-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244637101,"owners_count":20485446,"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","ngx-toastr"],"created_at":"2025-01-25T14:14:16.875Z","updated_at":"2026-05-16T23:01:25.926Z","avatar_url":"https://github.com/thepatrickniyo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NgToasterDemo\n\nThe code serves to implement ``ngx-toastr`` in angular\n\n\n## Setting up ngx-toastr\nRun the following commands to install ngx-toastr \n``npm i ngx-toastr --save``\n\nRun the follwing to install angular animations, this is becouse ngx-toastr uses angular animations\n``npm install @angular/animations --save``\n\n\u003cb\u003eNote\u003c/b\u003e: that ``ngx-toastr`` can also be used without angular animations but angular animations are easy to use.\n\nSet up the the ngx-toastr css to `angular.json` for its styles to be compiled\n\nUse the below if you are using  angular cli  6 and above, add the second line in ``styles`` under ``styles.scss``\n```\"styles\": [\n  \"styles.scss\",\n  \"node_modules/ngx-toastr/toastr.css\"\n]\n```\n\nUse the following for angular bellow cli 6\n```\"styles\": [\n  \"styles.scss\",\n  \"../node_modules/ngx-toastr/toastr.css\"\n]\n```\nAdd the below line to import ngx-toastr module in the app\n```import { ToastrModule } from 'ngx-toastr';```\n\nIn app modules add the below setting in ``imports`` array\n ```imports: [\n    BrowserModule,\n    AppRoutingModule,\n    ToastrModule.forRoot({\n      progressBar:true,\n      progressAnimation: 'increasing',\n      preventDuplicates: true\n    })\n  ],\n ```\n ## Screenshots\n success button clicked\n \u003cimg src=\"https://github.com/PatrickNiyogitare28/ng-toaster-demo/blob/main/src/assets/screenshots/Screenshot%20(3).png\" width=\"100%\"\u003e\n \n Error button clicked\n \u003cimg src=\"https://github.com/PatrickNiyogitare28/ng-toaster-demo/blob/main/src/assets/screenshots/Screenshot%20(4).png\" width=\"100%\"\u003e\n \n Warning button clicked\n \u003cimg src=\"https://github.com/PatrickNiyogitare28/ng-toaster-demo/blob/main/src/assets/screenshots/Screenshot%20(5).png\" width=\"100%\"\u003e\n \n Information button clicked\n \u003cimg src=\"https://github.com/PatrickNiyogitare28/ng-toaster-demo/blob/main/src/assets/screenshots/Screenshot%20(7).png\" width=\"100%\"\u003e\n\n ## To refere to this project\n - clone the repo\n - run ``npm install``\n - open your browser and run ``localhost:4200``\n\n\n ## For more details\n - Read the library documentation on npm\n https://www.npmjs.com/package/ngx-toastr\n\n ## Author \n patrickniyogitare28@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepatrickniyo%2Fng-toaster-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthepatrickniyo%2Fng-toaster-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepatrickniyo%2Fng-toaster-demo/lists"}