title: How to get the parent DOM element reference of an angular2 component
body: <p>I need to access to some properties of the parent DOM element which contains the component from where i want to get the info, is there a way to do such thing?</p>
  
  <p>Here is how my component looks like:</p>
  
  <pre><code>import { Component, Input } from "@angular/core";
  
  import "./loadingSpinner.component.css!";
  
      @Component({
          selector: "loading-spinner",
          template: `
              &lt;div *ngIf="showSpinner" class="loader-directive-wrapper"&gt;
                  &lt;div class="loader"&gt;&lt;/div&gt;
              &lt;/div&gt;`
      })
      export class LoadingSpinnerComponent {
          @Input() public showSpinner: boolean = false;
      } 
  </code></pre>