title: Angular2 Call Function When the Input Changes
body: <p>Child component:</p>
  
  <pre><code>export class Child {
      @Input() public value: string;
      public childFunction(){...}
  }
  </code></pre>
  
  <p>Parent component: </p>
  
  <pre><code>export class Parent {
      public value2: string;
      function1(){ value2 = "a" }
      function2(){ value2 = "b" }
  }
  </code></pre>
  
  <p>Parent view: </p>
  
  <pre><code>&lt;child [value]="value2"&gt;
  </code></pre>
  
  <p>Is there any way to call childFunction() every time the value2 is changed in this structure? </p>