angular-docs-cn/aio/tools/examples/shared/boilerplate
George Kalpakas 2e4244d521 fix(docs-infra): fix `elements` example when used with ES5 (#36536)
Previously, the `elements` docs example only worked in browsers that
natively supported Custom Elements and ES2015 modules. Furthermore, it
didn't work on StackBlitz, because StackBlitz ignores the specified
`target` in `tsconfig.json` and uses the UMD bundles (i.e. ES5 code)
even on browsers that do support ES2015.
(NOTE: In the past, this was not a problem, because we explicitly did
not provide a StackBlitz example. This has changed in #36067.)

This commit ensures the example works on all browsers and also on
StackBlitz by providing the necessary Custom Elements polyfills.

Fixes #36532

PR Close #36536
2020-04-09 13:35:27 -07:00
..
cli build(docs-infra): switch docs examples to Ivy (#36143) 2020-04-06 15:31:07 -07:00
cli-ajs build(docs-infra): update project structure to cli@9 12/12 (dependencies) (#36015) 2020-03-18 10:00:02 -07:00
common/src docs: increase color contrast on elements in tutorial 2019-05-31 15:23:32 -07:00
elements fix(docs-infra): fix `elements` example when used with ES5 (#36536) 2020-04-09 13:35:27 -07:00
getting-started/src docs: add new getting started guide (#27684) 2019-03-29 10:47:37 -07:00
i18n build(docs-infra): update project structure to cli@9 12/12 (dependencies) (#36015) 2020-03-18 10:00:02 -07:00
schematics build(docs-infra): update project structure to cli@9 11/12 (`angular.json`) (#36015) 2020-03-18 10:00:02 -07:00
service-worker build(docs-infra): update project structure to cli@9 12/12 (dependencies) (#36015) 2020-03-18 10:00:02 -07:00
systemjs build(docs-infra): update docs examples `package.json` templates wrt `core-js` (#36143) 2020-04-06 15:31:07 -07:00
testing build(docs-infra): update project structure to cli@9 11/12 (`angular.json`) (#36015) 2020-03-18 10:00:02 -07:00
universal build(docs-infra): update project structure to cli@9 12/12 (dependencies) (#36015) 2020-03-18 10:00:02 -07:00
viewengine build(docs-infra): switch docs examples to Ivy (#36143) 2020-04-06 15:31:07 -07:00
.gitignore docs: update docs example dependencies to version 8 (#30385) 2019-05-17 14:16:55 -07:00
UPDATING_CLI.md docs: update docs example dependencies to version 8 (#30385) 2019-05-17 14:16:55 -07:00