title: How to use decorators on object properties
body: <p>In the folloowing code I assign template element reference to <code>container</code> property on <code>MyComponent</code> class.</p>
  
  <pre><code>class MyComponent {
    @ViewChild('container') container;
    log(){
      console.log(this.container);
    }
  }
  </code></pre>
  
  <p>How can I create <code>container</code> property on an object(the code below gives me an error)</p>
  
  <pre><code>class MyComponent {
    myObject = {
       @ViewChild('container') container;
    }
    log(){
      console.log(this.myObject.container);
    }
  }
  </code></pre>
  
  <blockquote>
    <p>Error: Propery assignment expected</p>
  </blockquote>