I have an application that makes use of {{render}} a lot.
- Is this helper part of Ember.view?
- Is it officially deprecated?
- If not, where can I find the official docs for it? It used to be in the Guides but it no longer is.
I have an application that makes use of {{render}} a lot.
replace your view with a component - it’s an easy refactoring. Then use
{{component-name}}
{{render}}
is not deprecated in 2.0.0 (which means that it will live on throughout 2.x), but it is likely to be deprecated sometime in the 2.x lifetime. The vast majority of things that {{render}}
does, are better handled by a component and {{each}}
.
The API docs should be listed on Ember - 4.6 - Ember API Documentation, but they are not at the moment (likely because the API docs were lost during the rewrite for Ember 1.13). You can see the 1.12.1 API docs here: https://github.com/emberjs/ember.js/blob/v1.12.1/packages/ember-routing-htmlbars/lib/helpers/render.js#L19 (I have created https://github.com/emberjs/ember.js/issues/12168 to get that fixed).
Thanks for the speedy reply!