safe-notification-popup v1.0.15
NotificationPopup
This library was generated with Angular CLI version 16.0.0.
How to use notifications
> Install it from npm
> Import NotificationModule in the project´s app.module.ts
> Import the NotificationService in the component where required
> Import PopupModule in the project´s app.module.ts
> Import the PopupService in the component where required
Import the following styles in the angular.json file. (projects > architect > styles):
"styles": [
"node_modules/ngx-toastr/toastr.css",
"node_modules/notification-popup/src/notification/styles/style.scss"
]
Code scaffolding
Run ng generate component component-name --project notification-popup
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project notification-popup
.
Note: Don't forget to add
--project notification-popup
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build notification-popup
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build notification-popup
, go to the dist folder cd dist/notification-popup
and run npm publish
.
Running unit tests
Run ng test notification-popup
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.