I'm using components in partial of the whole HTML with webpack, so every 
components compiled into one .js file and included by <script /> tag.
In RC.4 version, I can check the selector exists and then bootstrap it, like

for(selector in components) {
  if(document.getElementsByTagName(selector).length == 0) {
    continue;
  }

  bootstrap(components[selector]);
}



But in recently updated RC.5, there's a NgModule, and I cannot check 
elements exists and then bootstrap it.
I found there's a method named ngDoBootstrap, but still can't bootstrap 
root component in there.

Is there anyway to bootstrap root component by checking the selector exists?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to