@bluehorse/ion-display-messages v0.0.3
IonDisplayMessages
This library is to display messages in Ionic. Recommendation: Ionic 5+ in the main project. This library was generated with Angular CLI version 8.2.14.
Installation
npm i @bluehorse/ion-display-messages
Module
IonDisplayMessagesModule
Component
IonDisplayMessagesComponent
Usage
<lib-ion-display-messages
[isVisible]="condition"
[dismissible]="true"
[icon]="true"
[type]="'error'">
{{MESSAGE}}
</lib-ion-display-messages>
Attributes
Atribute | type | Default |
---|---|---|
isVisible | boolean | true |
dismissible | boolean | true |
icon | boolean | true |
type | 'success'/'info'/'warning'/'error' | 'info' |
Examples
Code scaffolding
Run ng generate component component-name --project ion-display-messages
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project ion-display-messages
.
Note: Don't forget to add
--project ion-display-messages
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build ion-display-messages
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build ion-display-messages
, go to the dist folder cd dist/ion-display-messages
and run npm publish
.
Running unit tests
Run ng test ion-display-messages
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 README.