title: Angular pass data from child to parent
body: <p>I'm learning/working on Angular project, I've done a lot and I try to do the things "right way", so now what i want to do is this:</p>
  
  <p>I want to get the variable (output) from child component to parent component, but I don't want to use output, I don't want to listen to it, I want to get it whenever parent needs it, something like <code>child.getVariable()</code> I've came across one post which said I should use childview but the question wasn't same as mine, so I want to know is it a good practice to use childview to get data from child component or not?</p>