I wish to load my View using a variable like this:
{{#if model.isLoaded }}
Loaded: {{ model.template.slug }}
{{ view App.DocumentView templateName="model.template.slug" }}
{{ else }}
Loading…
{{/if}}
Is there a way to pass variable to a View like this? How could I otherwise load it when my model gets updated?
Use Binding to bind the template’s name to your model’s property.