# ng-toast-2

> ## Manual Import `ToastrModule` to your main module and call `forRoot`

Latest version **0.0.3** (published 2016-12-21) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install ng-toast-2
pnpm add ng-toast-2
yarn add ng-toast-2
bun add ng-toast-2
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-12-21 |
| First published | 2016-11-09 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | mahpah |

## Links

- npm: https://www.npmjs.com/package/ng-toast-2
- Repository: https://github.com/mahpah/ng-toast-2
- Homepage: https://github.com/mahpah/ng-toast-2#readme
- Issues: https://github.com/mahpah/ng-toast-2/issues
- npm.io page: https://npm.io/package/ng-toast-2

## Recent versions

- 0.0.3 (latest) — 2016-12-21
- 0.0.2 — 2016-11-11
- 0.0.1 — 2016-11-09

## README

# Toast component for your angular2 project

## Manual
Import `ToastrModule` to your main module and call `forRoot`

```
import { ToastrModule } from 'ng-toast-2'

@NgModule({
	imports: [
		ToastrModule.forRoot(),
	]
})
class MainModule {}
```

Include `toast-container` some where in your template

```
<router-outlet/>
<toast-container/>
```

Show toast by calling ToastManager's method

```
@Component({
	// ...
})
class SomeComponent {
	constructor(
		private toastMan: ToastManager
	) {
		this.toastMan.success('title', 'body')
	}
}
```

## License
```
					DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
									Version 2, December 2004

Copyright (C) 2016 DgmTeam <contact@digimed.vn>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

					DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
	TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.
```

---
_Source: https://npm.io/package/ng-toast-2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
