# Allow registrations of components as plugin outlets

**URL:** <https://meta.discourse.org/t/allow-registrations-of-components-as-plugin-outlets/53464>\
**Category:** Development\
**Created:** [28 Novembre 2016, 3:11am UTC](https://meta.discourse.org/t/allow-registrations-of-components-as-plugin-outlets/53464 "2016-11-28T03:11:12Z")\
**Posts on this page:** 1\
**Showing post:** 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:** [28 Novembre 2016, 9:00pm UTC](https://meta.discourse.org/t/allow-registrations-of-components-as-plugin-outlets/53464/2 "2016-11-28T21:00:12Z")

</div>

This is somewhat tricky. It wouldn’t be hard to auto discover components by name or something, but that wouldn’t let you conditionally render, because components have to render. You can hide them of course by using a `hidden` class or something but they’ll always end up in the DOM.

I could adjust my `plugin-outlet` helper to have some kind of callback function it could use to determine if a connector should be included in an outlet, but if I did that it wouldn’t be bound, so if you changed some property that would make it appear or not it wouldn’t toggle. That’s not ideal either.

---

_[View the full topic](https://meta.discourse.org/t/allow-registrations-of-components-as-plugin-outlets/53464)._
