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

How do you add to the queue via template?

Đang mở
#388 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
355
Fork
118
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.