Instalación
Componente global de alertas.
Installation
Install the dependencies and devDependencies and start the server.
$ npm install cplx-alert$ npm install font-awesome$ npm install bootstrap
Uso
Importar en app.module.ts
Primero:
imports: [ ]
Luego agregar CplxAlertService como provider en app.module.ts:
providers: [CplxAlertService]
Importar en componente
constructor
Selector global en app.component.html
<button ="go_alert(1)" class="btn btn-success mx-2">Alert success </button><button ="go_alert(2)" class="btn btn-danger mx-2">Alert danger </button><button ="go_alert(4)" class="btn btn-info mx-2">Alert info </button><button ="go_alert(3)" class="btn btn-warning mx-2">Alert warning </button> <cplx-alert [timeout]="timeclose"></cplx-alert>
Author
- Efrain Figueroa
License
MIT