title: calling variables from typescript file in html template [angular]
body: <p>I just started working with angular after reading the docs. I'm still a newbie.</p>
  
  <p>Calling arrays in angular2  is simple: </p>
  
  <p>you just have to use *ngfor item of items and then  {{item.name}}.</p>
  
  <p>what if I'm calling a single object, string or any, from my ts file . How can I do that? </p>
  
  <p>I tried : </p>
  
  <pre><code>{{myvariable}} 
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;div  ng-init="let x = myvariable"&gt;   {{x.name}}&lt;/div&gt; 
  </code></pre>
  
  <p>and other stuff but it doesn't work.
  Thanks in advance.</p>