Open Randhir-93 opened 2 years ago
export default class TestComponent extends Component { @service flashMessages;
constructor() { super(...arguments); setTimeout(() => { this.flashMessages.alert("dsfsf"); }, 1000) }
}` Calling TestComponent from application.hbs but flash message is not showing.
Make sure you are also displaying the message queue somewhere in the template:
{{#each this.flashMessages.queue as |flash|}} <FlashMessage @flash={{flash}} /> {{/each}}
export default class TestComponent extends Component { @service flashMessages;
}` Calling TestComponent from application.hbs but flash message is not showing.