# Important changes to Plugin Outlets for Ember 2.10

**URL:** https://meta.discourse.org/t/important-changes-to-plugin-outlets-for-ember-2-10/54136
**Category:** Development
**Created:** [2016年十二月12日 19:14 UTC](https://meta.discourse.org/t/important-changes-to-plugin-outlets-for-ember-2-10/54136 "2016-12-12T19:14:38Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2018年五月30日 15:27 UTC](https://meta.discourse.org/t/important-changes-to-plugin-outlets-for-ember-2-10/54136/26 "2018-05-30T15:27:59Z")

</div>

Ah it’s possible Ember’s `action` helper does not work with outlets. Have you tried using `change="myAction"` instead?

---

<div class="post-metadata">

### Author: ![shoshber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shoshber/32/95393_2.png) [@shoshber](https://meta.discourse.org/u/shoshber)
#### Post date: [2018年六月1日 06:23 UTC](https://meta.discourse.org/t/important-changes-to-plugin-outlets-for-ember-2-10/54136/27 "2018-06-01T06:23:36Z")

</div>

I hadn’t, but I just tried it. That doesn’t work either–and it breaks my workaround too. How mysterious. (If you want to see it, the full source is at [https://github.com/debtcollective/new-user-plugin/blob/sb/134/assets/javascripts/discourse/modal/connectors/create-account-after-password/tdc-sign-up.js.es6#L18](https://github.com/debtcollective/new-user-plugin/blob/sb/134/assets/javascripts/discourse/modal/connectors/create-account-after-password/tdc-sign-up.js.es6#L18) and [https://github.com/debtcollective/new-user-plugin/blob/sb/134/assets/javascripts/discourse/templates/modal/connectors/create-account-after-password/tdc-sign-up.hbs#L8](https://github.com/debtcollective/new-user-plugin/blob/sb/134/assets/javascripts/discourse/templates/modal/connectors/create-account-after-password/tdc-sign-up.hbs#L8)) I just noticed the component class file is in a different place than in the examples you give above, so I tried moving it, but the behavior was exactly the same.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2018年六月1日 16:00 UTC](https://meta.discourse.org/t/important-changes-to-plugin-outlets-for-ember-2-10/54136/28 "2018-06-01T16:00:16Z")

</div>

This is weird because when I tried to run your code the plugin outlet of “create-account-after-password” didn’t exist in core. I assume you’re going to make a PR or ask to add that?

Besides that I was able to confirm that it’s the `(action "something")` helper that doesn’t support the actions on plugin outlets. This can likely be fixed in Discourse but you’ll have to work around it for now.

This makes using the `change` attribute impossible since Ember wants a function there, not an action name.

One thing I’d suggest doing is putting a component in your connector. For example `{{tdc-sign-up}}`. In that Ember component you can have actions and methods that will work with all the ember helpers.

---

<div class="post-metadata">

### Author: ![shoshber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shoshber/32/95393_2.png) [@shoshber](https://meta.discourse.org/u/shoshber)
#### Post date: [2018年六月1日 23:45 UTC](https://meta.discourse.org/t/important-changes-to-plugin-outlets-for-ember-2-10/54136/29 "2018-06-01T23:45:12Z")

</div>

> This is weird because when I tried to run your code the plugin outlet of “create-account-after-password” didn’t exist in core. I assume you’re going to make a PR or ask to add that?

I [did](https://github.com/discourse/discourse/pull/5877)! I think it’s getting merged next week.

> One thing I’d suggest doing is putting a component in your connector. For example {{tdc-sign-up}}. In that Ember component you can have actions and methods that will work with all the ember helpers.

Funnily enough, that’s what [I did at first](https://github.com/debtcollective/new-user-plugin/blob/da6e7443a870ef8114cb65f341e473fb92cb2885/assets/javascripts/discourse/templates/modal/connectors/create-account-before-password/tdc-new-user-connector.hbs#L1), but then I changed it thinking this would be simpler (fewer wrapping `span`s and `div`s to handle–this is before I found the `noTags` connector attribute) 🤷‍♀️ Guess not! Always learning something new with discourse.

[上一頁](https://meta.discourse.org/t/important-changes-to-plugin-outlets-for-ember-2-10/54136.md?page=1)
