One thing I’ve never been 100% clear in Ember is how they want you to fetch data for widgets that aren’t related to the rest of the content. I think fetching the data the way you suggest is probably fine. I think maybe using an Ember Service that is injected into your component to fetch the model is probably the accepted way to do it.
eviltrout
(Robin Ward)
2
関連トピック
| トピック | 返信 | 表示 | アクティビティ | |
|---|---|---|---|---|
| Using Ember Services in Discourse plugins | 7 | 2253 | 2022 年 2 月 6 日 | |
| How to inject a service in discourse? | 8 | 841 | 2022 年 2 月 8 日 | |
| Glimmer Components: what's the limit here? | 9 | 481 | 2025 年 2 月 22 日 | |
| Ember Observer changes between Components | 0 | 726 | 2020 年 11 月 17 日 | |
| How different are Ember component and Discourse widget? | 3 | 1272 | 2020 年 6 月 8 日 |