# טוען נושאים ב-outlet של תוסף חדש שהוספתי

**URL:** <https://meta.discourse.org/t/loading-topics-in-a-new-plugin-outlet-ive-added/199819>\
**Category:** Development\
**Created:** [9 באוגוסט,‏ 2021,‏ 1:37pm UTC](https://meta.discourse.org/t/loading-topics-in-a-new-plugin-outlet-ive-added/199819 "2021-08-09T13:37:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![JQ331](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@JQ331](https://meta.discourse.org/u/JQ331)\
**Post date:** [9 באוגוסט,‏ 2021,‏ 1:37pm UTC](https://meta.discourse.org/t/loading-topics-in-a-new-plugin-outlet-ive-added/199819/1 "2021-08-09T13:37:48Z")

</div>

Hi. I am trying to pass a list of topics to `{{topic-list topics=myChosenTopics}}` in a new template I have created in a plugin.

So I am trying to figure out how to set the value for “myChosenTopics” in my js file so it can be passed to `topic-list`.

The closest I have found is the `setupComponent(args, component) {..component.set('myChosenTopics', myChosenTopics);` method described here: [https://meta.discourse.org/t/how-to-add-a-featured-topic-list-to-your-discourse-homepage/132949](https://meta.discourse.org/t/how-to-add-a-featured-topic-list-to-your-discourse-homepage/132949).

Is there a better way?

If not, seems like this method only works when linking to a connector class (ie, with a plugin outlet). Are there special steps I need to take to add a new plugin outlet to a template?

---

_[View the full topic](https://meta.discourse.org/t/loading-topics-in-a-new-plugin-outlet-ive-added/199819)._
