title: Change template dynamically from view-model (Aurelia)
body: <p>Is it possible to change which html-template is being used dynamically from the view-model?</p>
  
  <p>E.g. based on data downloaded from a server, I'd like to choose different templates (or some other logic in the view-model)</p>
  
  <p><strong>Update</strong>
  Based on the answer below suggesting <code>getViewStrategy</code>, here's a complete sample:</p>
  
  <pre><code>export class MultiView {
    gender : string
  
    getViewStrategy() {
        if(this.gender == 'boy')
            return './multi-view-blue.html'
        else
            return './multi-view-pink.html'
    }
  
    // when view is made visible (e.g. by using the router)
    activate() { 
        this.gender = Math.random()&gt;0.5 ? "boy" : "girl"
    }
  }
  </code></pre>