title: How to bind an Image from App Component to HTML file in Angular 2
body: <p>How to bind an Image from App Component to HTML file in Angular 2
  This is my Relative path : assets/images/MyProfile_Summary_1x.png</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>export class MyProfile  {
  
  image :"./assets/images/MyProfile_Summary_1x.png";
  
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
   margin: 0;
  }
  
  #over img {
   margin-left: auto;
   margin-right: auto;
   display: block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;div id="over" style="position:absolute; width:100%; height:100%"&gt;
                              &lt;img [src]="image"&gt;
                          &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>