title: Know the html a component is being called from
body: <p>In the .ts files of an Angular5 project I needed to know the name of the html that was adding the component (for the sake of creating unique names for some buttons inside those components)
  So my html has ended being something along the lines of:</p>
  
  <pre><code>&lt;my-component data-myattribute="thishtmlfile"  &gt;&lt;/my-component&gt;
  </code></pre>
  
  <p>and then I used <code>@Input</code> on the .ts side to grab this value</p>
  
  <p>But I was wondering if there is a way to automatically know the name of the html my component is being called from, inside the code of the component itself. </p>
  
  <p>The <code>Reflect</code> object didn't work well for me, but I'm open to try again ;)</p>