Skip to content
This repository was archived by the owner on Oct 16, 2023. It is now read-only.

Instead of depending on render we depend on a dynamic component - #1

Merged
nathanpalmer merged 1 commit into
masterfrom
alternate-modal
Jun 9, 2016
Merged

nathanpalmer merged 1 commit into
masterfrom
alternate-modal

Conversation

@nathanpalmer

Copy link
Copy Markdown
Contributor

Instead of rendering an outlet this will create an array on the application controller called modals. This will get new entries when modals are created.

{{#each modals as |modal|}}
  {{component-apply modal.name modal.args}}
{{/each}}

This removes our outlet, view and controller that was just a proxy to the component itself. So the actual component is simply rendered. You have to use component-apply until ember finishes the pull request for splat support.

…rendering a dynamic component

```
{{#each modals as |modal|}}
  {{component-apply modal.name modal.args}}
{{/each}}
```

It keeps the state of the modals within the controller in a modals array.
@aaronbhansen

Copy link
Copy Markdown
Contributor

👍

@nathanpalmer
nathanpalmer merged commit 81e98d8 into master Jun 9, 2016
@aaronbhansen
aaronbhansen deleted the alternate-modal branch August 2, 2016 16:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants