title: Angular 2 Difference between @view and @component template
body: <p>In Angular 2, I'm looking for an explanation on the difference between </p>
  
  <pre><code>@Component ({
     selector: 'test-component',
     template: '&lt;div&gt;Hello World&lt;/div&gt;'
  })
  </code></pre>
  
  <p>and </p>
  
  <pre><code>@Component ({
     selector: 'test-component',
  })
  
  @View ({ 
     template: '&lt;div&gt;Hello World&lt;/div&gt;'
  })
  </code></pre>
  
  <p>I have tried creating 2 components with the 2 different approaches and they both seem to behave the same. Any clarification would be helpful. </p>