From 7c84520c719af23c5f6d70e110071fc4acc7cafb Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Fri, 6 Nov 2015 13:30:02 +0000 Subject: [PATCH] docs(quickstart-ts): add note about ES6 shim --- public/docs/ts/latest/quickstart.jade | 30 ++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/public/docs/ts/latest/quickstart.jade b/public/docs/ts/latest/quickstart.jade index c03ab685a2..19876d2fd5 100644 --- a/public/docs/ts/latest/quickstart.jade +++ b/public/docs/ts/latest/quickstart.jade @@ -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 + + ### 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> + + +