parent
3324bd944d
commit
bd52aa3f34
|
@ -10,7 +10,7 @@
|
|||
<!-- #docregion libraries -->
|
||||
<!-- #docregion ie-polyfills -->
|
||||
<!-- IE required polyfill -->
|
||||
<script src="node_modules/client/shim.min.js"></script>
|
||||
<script src="node_modules/core-js/client/shim.min.js"></script>
|
||||
<!-- #enddocregion ie-polyfills -->
|
||||
|
||||
<script src="node_modules/zone.js/dist/zone.js"></script>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<!-- #docregion libraries -->
|
||||
<!-- #docregion ie-polyfills -->
|
||||
<!-- Polyfill(s) for older browsers -->
|
||||
<script src="node_modules/client/shim.min.js"></script>
|
||||
<script src="node_modules/core-js/client/shim.min.js"></script>
|
||||
<!-- #enddocregion ie-polyfills -->
|
||||
|
||||
<script src="node_modules/zone.js/dist/zone.js"></script>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// #docregion
|
||||
Error.stackTraceLimit = Infinity;
|
||||
|
||||
require('es6-shim');
|
||||
require('core-js/es6');
|
||||
require('reflect-metadata');
|
||||
|
||||
require('zone.js/dist/zone');
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
"@angular/platform-browser": "2.0.0-rc.1",
|
||||
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
|
||||
"@angular/router-deprecated": "2.0.0-rc.1",
|
||||
"es6-shim": "^0.35.0",
|
||||
"core-js": "^2.4.0",
|
||||
"reflect-metadata": "0.1.2",
|
||||
"rxjs": "5.0.0-beta.6",
|
||||
"zone.js": "0.6.12"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// #docregion
|
||||
import 'es6-shim';
|
||||
import 'core-js/es6';
|
||||
import 'reflect-metadata';
|
||||
require('zone.js/dist/zone');
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"ambientDependencies": {
|
||||
"es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654",
|
||||
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
|
||||
"jasmine": "registry:dt/jasmine#2.2.0+20160412134438",
|
||||
"node": "registry:dt/node#4.0.0+20160509154515"
|
||||
}
|
||||
|
|
|
@ -103,7 +103,7 @@ a(id="polyfills")
|
|||
:marked
|
||||
See "[Why peerDependencies?](#why-peer-dependencies)" below for background on this requirement.
|
||||
:marked
|
||||
***es6-shim*** - monkey patches the global context (window) with essential features of ES2015 (ES6).
|
||||
***core-js*** - monkey patches the global context (window) with essential features of ES2015 (ES6).
|
||||
Developers may substitute an alternative polyfill that provides the same core APIs.
|
||||
This dependency should go away once these APIs are implemented by all supported ever-green browsers.
|
||||
|
||||
|
|
|
@ -362,7 +362,7 @@ h2#index Step 4: Add #[code index.html]
|
|||
We loaded the following scripts
|
||||
+makeExcerpt('index.html', 'libraries')
|
||||
:marked
|
||||
We begin with es6-shim which monkey patches the global context (window) with essential features of ES2015 (ES6).
|
||||
We begin with core-js's es6-shim which monkey patches the global context (window) with essential features of ES2015 (ES6).
|
||||
Next are the polyfills for Angular2, `zone.js` and `reflect-metadata`.
|
||||
Then the [SystemJS](#systemjs) library for module loading.
|
||||
|
||||
|
|
Loading…
Reference in New Issue