emberjs/ember.js — pull request #10093 by lukemelia (2014-12-31 08:12:06+00:00)
Title: Add bindable view support to {{view}} helper and implement {{component}} helper

This PR introduces two new features.

1) The optional first parameter to the `{{view}}` helper previously supported being a unquoted path that was resolved once at render time. It is now watched and the view is swapped when the value changes.

2) The new `{{component}}` helper allows passing of a param that is resolved and used to look up the component. Leveraging the first feature described above, it also automatically will swap the component for another when the bound value changes.

See #5007 for more discussion and background.

What's left:

- [x] first pass of implementation
- [ ] collect code reviews and apply feedback
- [x] basic test coverage
- [ ] more test coverage
- [ ] update `{{view}}` helper docs
- [ ] create `{{component}}` helper docs