docs(quickstart-ts): add note about ES6 shim
This commit is contained in:
parent
5828f4de79
commit
7c84520c71
|
@ -143,7 +143,12 @@ include ../../../_includes/_util-fns
|
|||
|
||||
:markdown
|
||||
Congratulations! We are in business.
|
||||
|
||||
|
||||
.alert.is-helpful
|
||||
:markdown
|
||||
If you see `Loading...` displayed instead, see the
|
||||
[Browser ES6 support appendix](#es6support).
|
||||
|
||||
.l-main-section
|
||||
:markdown
|
||||
## What's wrong with this?
|
||||
|
@ -458,3 +463,26 @@ include ../../../_includes/_util-fns
|
|||
```
|
||||
"suppressImplicitAnyIndexErrors":true
|
||||
```
|
||||
|
||||
.l-main-section
|
||||
:markdown
|
||||
<a id="es6support"></a>
|
||||
### Appendix: Browser ES6 support
|
||||
Angular 2 requires ES6 support, such as can be found in most modern
|
||||
browsers. For older browsers (including IE 11) you can use a shim to get
|
||||
the needed functionality.
|
||||
|
||||
After creating `package.json` (halfway through the quickguide), run this
|
||||
command to add a shim to the project:
|
||||
|
||||
code-example(language="sh" format=".").
|
||||
npm install es6-shim --save
|
||||
|
||||
:markdown
|
||||
Now you can load the shim in your `index.html` before the other scripts:
|
||||
|
||||
code-example(language="html" format=".").
|
||||
<script src="../node_modules/es6-shim/es6-shim.js"></script>
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue