title: angular 4 - call child component function from parent component html
body: <p>I need to call child component function from parent component html.</p>
  
  <p>something like this:</p>
  
  <p>child component:</p>
  
  <pre><code>export class childComponent {
    private value: boolean;
  
    @input()
    setValue(inputVal){
      this.value = inputVal;
    }
  }
  </code></pre>
  
  <p>parent component:</p>
  
  <pre><code>&lt;childComponent  [setValue] = "true"&gt;&lt;/childComponent&gt;
  </code></pre>
  
  <p>Any ideas how can it be done?</p>