Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(current): change to PLATFORM.moduleName('app') and to 'aurelia-bootstrapper' #418

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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