title: Aurelia - composing views dynamically
body: <p>I have a common container component into which I would like to display different components depending on what the user has selected. I have got this working using the  element in the container view and binding the view.model attribute to a model property, like this:</p>
  
  <pre><code>  &lt;compose view-model="./${componentName}" if.bind="haveComponent" model.bind="stuff"&gt;&lt;/compose&gt;
  </code></pre>
  
  <p>I have methods in the view model which change the value of {componentName} and different views are displayed.It does seem to work but something doesn't feel right, I'm not quite sure. </p>
  
  <p>Is this a legitimate way to achieve this? I'm pretty new to Aurelia so any pointers would be appreciated.</p>