title: angular 2 template use console.log
body: <p>I would like to use the console.log inside the inline template but can't find any directions.</p>
  
  <pre><code>@Component({
    selector:"main",
    providers: [ItemService],
    template:`
      &lt;ul&gt;
       &lt;li *ngFor="let item of items"&gt;
        {{console.log(item)}} &lt;----- ??? 
        &lt;p&gt;{{item.name}}&lt;/p&gt;
       &lt;/li&gt;
      &lt;/ul&gt;
  
    `
  })
  export class HomeComponent {
    private items: Array&lt;ItemModel&gt;;
  
    constructor() {}
  }
  </code></pre>