Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Knowing if there is a portal open #5

Open
knownasilya opened this issue Jan 22, 2016 · 0 comments
Open

Knowing if there is a portal open #5

knownasilya opened this issue Jan 22, 2016 · 0 comments

Comments

@knownasilya
Copy link

Basically I want to know if there is a portal open for a given id:

{{#with (concat 'footer-' elementId) as |portalName|}}
  {{#if (portal-open portalName)}}
    {{portal-for name=portalName}}
  {{/if}}
{{/with}}

Basically I tried to do the same with a computed property and the service, but it requires setting up dynamic CPs (since I'm using the id) which is way too much work if you have multiple portals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant