It'd be helpful to have different types of flash messages (e.g. – notice, success, error). Ideally the type of message would be outputted as a HTML class on the view so that they could be styled appropriately.
Creating a flash:
router.flashMessage('success', 'You made it!');
router.flashMessage('notice', 'Be warned.');
router.flashMessage('error', 'You have made a huge mistake.');
Resulting Ember view HTML:
<div class="flash-message success">You've made it!</div>
<div class="flash-message notice">Be warned.</div>
<div class="flash-message error">You've made a huge mistake.</div>
It'd be helpful to have different types of flash messages (e.g. – notice, success, error). Ideally the type of message would be outputted as a HTML class on the view so that they could be styled appropriately.
Creating a flash:
Resulting Ember view HTML: