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

How do you add to the queue via template?

Abierto
#388 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
355
Forks
118
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.