Reputation: 1857
How can I set dynamically templateName
in Ember 2.x components.
Because old properties from Ember.View
is deprecaded.
Upvotes: 1
Views: 230
Reputation: 181
you can use layoutName
to set dynamic templates.
For Eg: assume a computed property, say dynamicTemplate
returns the required template to be rendered
{{my-component layoutName=dynamicTemplate}}
Upvotes: 1