ember-flash-message

0.1.0 • Public • Published

ember-flash-message

Super simple flash messages for your Ember app.

Installation

  • npm install --save ember-flash-message

Usage

In application.hbs:

{{flash-message}}

Then, from within any route, controller, or component:

this.flash.notice('a notice message');
this.flash.success('a success message');
this.flash.failure('a failure message');

By default, the message will appear for 3 seconds. If you would like to change this, simply pass the duration (in milliseconds) as the second argument:

this.flash.success('a success message', 5000);

Styling can easily be overridden. Take a look in vendor/ember-flash-message/app.css to get an idea.

Readme

Keywords

Package Sidebar

Install

npm i ember-flash-message

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • ragnarpeterson