Update Aurelia.md
This commit is contained in:
parent
5f9590ac3f
commit
880bca423c
@ -2,6 +2,7 @@
|
||||
|
||||
## [Configuration and Startup](aurelia-doc://section/1/version/1.0.0)
|
||||
|
||||
```html
|
||||
<code-listing heading="Bootstrapping Older Browsers">
|
||||
<source-code lang="HTML">
|
||||
<script src="jspm_packages/system.js"></script>
|
||||
@ -15,12 +16,14 @@
|
||||
</script>
|
||||
</source-code>
|
||||
</code-listing>
|
||||
```
|
||||
|
||||
> Warning: Promises in Edge
|
||||
> Currently, the Edge browser has a serious performance problem with its Promise implementation. This deficiency can greatly increase startup time of your app. If you are targeting the Edge browser, it is highly recommended that you use the [bluebird promise](http://bluebirdjs.com/docs/getting-started.html) library to replace Edge's native implementation. You can do this by simply referencing the library prior to loading system.js.
|
||||
|
||||
<code-listing heading="Standard Startup Configuration">
|
||||
<source-code lang="ES 2015/2016">
|
||||
```javascript
|
||||
export function configure(aurelia) {
|
||||
aurelia.use
|
||||
.standardConfiguration()
|
||||
@ -28,8 +31,10 @@
|
||||
|
||||
aurelia.start().then(() => aurelia.setRoot());
|
||||
}
|
||||
```
|
||||
</source-code>
|
||||
<source-code lang="TypeScript">
|
||||
```typescript
|
||||
import {Aurelia} from 'aurelia-framework';
|
||||
|
||||
export function configure(aurelia: Aurelia): void {
|
||||
@ -39,6 +44,7 @@
|
||||
|
||||
aurelia.start().then(() => aurelia.setRoot());
|
||||
}
|
||||
```
|
||||
</source-code>
|
||||
</code-listing>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user