adopted-ember-addons / adopted-ember-addons/ember-cli-flash

How do you add to the queue via template?

Aperta
#388 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
355
Fork
118
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

rendering a flash message via template would allow for unlimited and safe flexibility, as it would allow you to skip the service, and safely render links, not relying on htmlsafe, etc.

I noticed the README has no examples of this? can one be added?

------------

I'm assuming _somewhere_ in the app, there is a
```hbs
{{#each fms.queue as |foo|}}
some kind of rendering
{{/each}}
```

but then _elsewhere_, I'd like to be able to
```hbs

My custom content

```
and have this usage add to the queue, display, and do all the timeout-y stuff that folks would expect from using the service directly.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.