1.6.0 • Published 4 years ago

art-toast v1.6.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

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

4 years ago

1.5.9

4 years ago

1.5.8

4 years ago

1.5.7

4 years ago

1.5.6

4 years ago

1.5.5

4 years ago

1.5.4

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.2.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago