title: Angular: invoking a function in one component, with events on another component
body: <p>Working with Angular6, let's say I have 2 child components A, B that are both part of parent component P.
  I want to use a form input on component A- so once clicked, the string value will pass <strong>and trigger a function</strong> on component B.
  something like this perhaps:</p>
  
  <pre><code>functionOnB(valueFromA: string) { //some code here; } 
  </code></pre>
  
  <p>is this even possible?</p>
  
  <p>I've successfully transmitted data between components using angular's EventEmitter, but is it possible to invoke functions with this data, not just pass the raw information?</p>