title: Dynamic image path in Ionic 2 doesn't work on device
body: <p>I'm using Ionic 2.2 and normally I reference the pictures like this:</p>
  
  <pre><code>&lt;img  src="assets/images/img.svg" /&gt;
  </code></pre>
  
  <p>Which works fine in both browser and device.</p>
  
  <p>But our app uses themes, and I need to change the image folder based on which theme the user selects.</p>
  
  <p>In my html:</p>
  
  <pre><code>&lt;img src="{{getImagePath('image1.svg')}}"&gt;
  </code></pre>
  
  <p>In typescript file:</p>
  
  <pre><code>  getImagePath(img){
      if(this.theme == 'special'){
        return 'assets/images/special/' + img;
      } else {
        return 'assets/images/' + img;
      }
    }
  </code></pre>
  
  <p>This works in browser but, not in device.</p>
  
  <p>What is the correct way to do this?
  I also tried <code>[src]="getImagePath('image1.svg')"</code> which had the same result. And tried to play with the path like <code>../assets</code> and couple other variation but couldn't find the right way.</p>