title: Angular 2 Dynamically bootstrap app components
body: <p>Is it possible for Dynamically bootstrap app components depending on if the element exists.</p>
  
  <p>Would want something like...</p>
  
  <pre><code>export class AppModule { 
  
  constructor() {
  
  }   
  
  ngDoBootstrap(appRef: ApplicationRef) {
      for(let component of components) {
         if(document.querySelector(component.selector)){
             appRef.bootstrap(component);
         }
      }
  }
  
  }
  </code></pre>