Has anybody ever used ember-cli-flash add-on or any other one ? The available ember screencast uses a different syntax compared to the official README of the add-on. Anyway, none of them worked for me, even if I inject a service in a controller or router like this:
export default Route.extend(ApplicationRouteMixin, {
session: service('session'),
currentUser: service('current-user'),
flashMessages: service('flash-messages'),
....
and try to add a message like that:
this.get('flashMessages').alert("Error");
In the application template:
<div class="grid-container">
{{#each flashMessages.queue as |flash|}}
{{flash-message flash=flash messageStyle='foundation'}}
{{/each}}
{{outlet}}
</div>
Any idea on how to get this working ? Thank you.