Skip to content

Commit

Permalink
Merge pull request #418 from ilsergente1993/updated-documentation
Browse files Browse the repository at this point in the history
docs(current): change to PLATFORM.moduleName('app') and to 'aurelia-bootstrapper'
  • Loading branch information
EisenbergEffect authored Jun 19, 2019
2 parents 5e11717 + 8ee5414 commit 31bd45a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,28 +212,28 @@ So far, we've been bootstrapping our app declaratively by using the `aurelia-app
In case you use Webpack, you can replace the `aurelia-bootstrapper-webpack` package with the `./src/main` entry file in the `aurelia-bootstrapper` bundle defined inside of `webpack.config.js`, and call the bootstrapper manually:
```JavaScript Manual Bootstrapping with Webpack
import {bootstrap} from 'aurelia-bootstrapper-webpack';
import {bootstrap} from 'aurelia-bootstrapper';

bootstrap(async aurelia => {
aurelia.use
.standardConfiguration()
.developmentLogging();

await aurelia.start();
aurelia.setRoot('app', document.body);
aurelia.setRoot(PLATFORM.moduleName('app'), document.body);
});
```
```TypeScript Manual Bootstrapping with Webpack [variant]
import {Aurelia} from 'aurelia-framework';
import {bootstrap} from 'aurelia-bootstrapper-webpack';
import {bootstrap} from 'aurelia-bootstrapper';

bootstrap(async (aurelia: Aurelia) => {
aurelia.use
.standardConfiguration()
.developmentLogging();

await aurelia.start();
aurelia.setRoot('app', document.body);
aurelia.setRoot(PLATFORM.moduleName('app'), document.body);
});
```
Expand Down

0 comments on commit 31bd45a

Please sign in to comment.