angular-cn/aio/tools/examples/shared
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
..
boilerplate fix(docs-infra): fix `elements` example when used with ES5 (#36536) 2020-04-09 13:35:27 -07:00
package.json fix(docs-infra): fix `elements` example when used with ES5 (#36536) 2020-04-09 13:35:27 -07:00
protractor.config.js build(docs-infra): use `puppeteer` to get a browser for docs examples tests (#35381) 2020-02-18 12:42:47 -08:00
tsconfig.json feat(aio): add e2e (#15976) 2017-04-19 22:36:23 -05:00
yarn.lock fix(docs-infra): fix `elements` example when used with ES5 (#36536) 2020-04-09 13:35:27 -07:00