1.6.0 • Published 5 years ago
art-toast v1.6.0
Art Toast
Art Toast is an easy-to-use library.
DEMO: coming soon
Install
npm install art-toast
font-awesome
is a necessary dependency for icons
npm i font-awesome@4.7.0
Setup
1: Add font-awesome to angular.json
{
...
"styles": [
"node_modules/font-awesome/css/font-awesome.min.css"
]
}
2: Add the module to app.module.ts
import { ArtToastModule } from 'art-toast';
@NgModule({
declarations: [
...
],
imports: [
...,
ArtToastModule
],
providers: [...],
})
3: Add in app.component.html
<art-toast></art-toast>
Using
import { Component } from '@angular/core';
import { ArtToastService } from 'art-toast';
@Component({...})
export class AppComponent {
constructor(private artToastService: ArtToastService) { }
showToast() {
this.artToastService.success('title', 'description', {
showButtonClose: true,
timer: 2000
});
}
}
1.6.0
5 years ago
1.5.9
5 years ago
1.5.8
5 years ago
1.5.7
5 years ago
1.5.6
5 years ago
1.5.5
5 years ago
1.5.4
5 years ago
1.5.3
5 years ago
1.5.2
5 years ago
1.5.1
5 years ago
1.2.0
5 years ago
1.5.0
5 years ago
1.4.0
5 years ago
1.3.0
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago