aurelia / bootstrapper

Sets up the default configuration for the aurelia framework and gets you up and running quick and easy.
MIT License
75 stars 34 forks source link

Allow for bootstrapping from the main module #2

Closed Alxandr closed 9 years ago

Alxandr commented 9 years ago

This allows for the following code-pattern:

import {bootstrap} from 'aurelia-bootstrapper'; 

bootstrap(aurelia => { 
   aurelia.use
    .defaultBindingLanguage()
    .defaultResources()
    .router()
    .eventAggregator();

  aurelia.start().then(a => a.setRoot('lib/app/app', document.body));
});

In this case, you would not add aurelia-app or aurelia-main to your html, rather you would just load your main module.

Alxandr commented 9 years ago

Would you mind letting me know when this is released?