title: How to add function to object?
body: <p>I have object: </p>
  
  <pre><code>  public functions = {
      chosenYearHandler: null,
      chosenMonthHandler: null
    };
  </code></pre>
  
  <p>And there is method:</p>
  
  <pre><code>  public chosenMonthHandler(normalizedYear: any) {
      this.form.controls["date"].setValue(normalizedYear);
    }
  </code></pre>
  
  <p>I fill method to object like:</p>
  
  <pre><code>this.functions.chosenMonthHandler = this.chosenMonthHandler;
  </code></pre>
  
  <p>Then in template I tried to call method like:</p>
  
  <pre><code>   (monthSelected)="functions.chosenMonthHandler($event, dp)"
  </code></pre>
  
  <p>It says:</p>
  
  <pre><code>FilterMobileComponent.html:420 ERROR TypeError: Cannot read property 'chosenYearHandler' of undefined
      at Object.eval [as handleEvent]
  </code></pre>
  
  <p>What do I do wrong?</p>