Skip to content

Type registration

Choose a tag to compare

@poteto poteto released this 12 Mar 11:59
· 392 commits to master since this release

If you find yourself creating many custom messages with the same custom type, you can register it with the service and use that method instead.

Ember.get(this, 'flashes').registerType('birthday');
Ember.get(this, 'flashes').birthday("Hey shawty, it's your birthday");
Changelog
  • [FEATURE] Added ability to register new types