ngx-message
v17.3.1
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
Downloads
5
Readme
NgxMessage
This library was generated with Angular CLI version 17.3.0.
Code scaffolding
Run ng generate component component-name --project ngx-message
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-message
.
Note: Don't forget to add
--project ngx-message
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build ngx-message
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build ngx-message
, go to the dist folder cd dist/ngx-message
and run npm publish
.
Running unit tests
Run ng test ngx-message
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.
Install
npm install ngx-message
Setup
app.component.html
<lib-message type="info" content="Notifiy waring!!"></lib-message>
-> Info
<lib-message type="warn" content="Notifiy waring!!"></lib-message>
-> warn
<lib-message type="success" content="Notifiy waring!!"></lib-message>
-> Success
<lib-message type="error" content="Notifiy waring!!"></lib-message>
-> Error
app.module.ts
import { NgxMessageModule } from 'ngx-message';