Skip to content

Commit

Permalink
fix($browser): Fixed Global timeout not working
Browse files Browse the repository at this point in the history
  • Loading branch information
akserg committed Jun 20, 2016
1 parent b8cff2f commit 5610371
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Angular 2 Toasty [![npm version](https://badge.fury.io/js/ng2-toasty.svg)](https://badge.fury.io/js/ng2-toasty) [![npm monthly downloads](https://img.shields.io/npm/dm/ng2-toasty.svg?style=flat-square)](https://www.npmjs.com/package/ng2-toasty)
Angular2 Toasty component shows growl-style alerts and messages for your application.

Follow me [![twitter](https://img.shields.io/twitter/follow/akopkokhyants.svg?style=social&label=%20akopkokhyants)](https://twitter.com/akopkokhyants) to be notified about new releases.

[![Build Status](https://travis-ci.org/akserg/ng2-toasty.svg?branch=master)](https://travis-ci.org/akserg/ng2-toasty)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Dependency Status](https://david-dm.org/akserg/ng2-toasty.svg)](https://david-dm.org/akserg/ng2-toasty)
[![devDependency Status](https://david-dm.org/akserg/ng2-toasty/dev-status.svg)](https://david-dm.org/akserg/ng2-toasty#info=devDependencies)

Follow me [![twitter](https://img.shields.io/twitter/follow/akopkokhyants.svg?style=social&label=%20akopkokhyants)](https://twitter.com/akopkokhyants) to be notified about new releases.

## Installation
```sh
npm install ng2-toasty --save
Expand Down
5 changes: 5 additions & 0 deletions src/toasty.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,20 @@ import {Injectable} from '@angular/core';
*/
@Injectable()
export class ToastyConfig {

// Maximum number of toasties to show at once
limit:number = 5;

// Whether to show the 'X' icon to close the toast
showClose:boolean = true;

// The window position where the toast pops up. Possible values
// bottom-right, bottom-left, top-right, top-left, top-center, bottom-center
position:string = 'bottom-right';

// How long (in miliseconds) the toasty shows before it's removed. Set to false to disable.
timeout:number = 5000;

// What theme to use. Possible values:
// default, material or bootstrap
theme:string = 'default';
Expand Down

0 comments on commit 5610371

Please sign in to comment.