angular/aio/content/examples
George Kalpakas 2b6b9c95f9 fix(docs-infra): fix the component-interaction example e2e tests to run in prod mode (#39001)
Previously, the `component-interaction` docs example was configured to
run e2e tests on CI in development mode (in contrast to the default for
all docs examples, which is to run e2e tests in production mode). This
was necessary due to the following reasons:
- One of the components, `CountdownTimerComponent`, which is used by
  `CountdownLocalVarParentComponent` and
  `CountdownViewChildParentComponent`, was triggering a periodic
  asynchronous task (via `setInterval()`), which prevented the app from
  stabilizing and caused tests to fail.
- In order to prevent this from happening, the example's `AppModule` had
  special provisioning to not include the problematic components in its
  declarations when testing.
- Since this had to be determined dynamically at runtime (via inspecting
  the URL query params), the `AppModule`'s config could not be
  statically evaluated in AOT compilation.

This commit fixes the example to make it compatible with AOT compilation
and removes the custom test command from its `example-config.json`
(allowing it to be run with the default e2e test command, i.e. in
production mode).

PR Close #39001
2020-09-28 16:26:32 -04:00
..
accessibility refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
ajs-quick-reference refactor(docs-infra): update docs examples tslint.json to match CLI and fix failures (#38143) 2020-07-31 11:00:06 -07:00
animations refactor(docs-infra): fix docs examples for tslint rules related to underscores in variable names (#38143) 2020-07-31 11:00:06 -07:00
architecture refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
attribute-binding refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
attribute-directives refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
binding-syntax refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
bootstrapping docs: change wrong default app module by ng new (#38549) 2020-09-21 12:25:28 -07:00
built-in-directives refactor(docs-infra): update docs examples tslint.json to match CLI and fix failures (#38143) 2020-07-31 11:00:06 -07:00
built-in-template-functions refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
cli-builder/src fix(docs-infra): convert hard-coded cli-builder examples into a proper mini-app (#34362) 2020-01-21 13:12:18 -05:00
comparing-observables test(docs-infra): add commands to run the unit tests (#34537) 2020-08-27 09:05:59 -07:00
component-interaction fix(docs-infra): fix the component-interaction example e2e tests to run in prod mode (#39001) 2020-09-28 16:26:32 -04:00
component-styles refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
dependency-injection refactor(docs-infra): update docs examples tslint.json to match CLI and fix failures (#38143) 2020-07-31 11:00:06 -07:00
dependency-injection-in-action refactor(docs-infra): update docs examples tslint.json to match CLI and fix failures (#38143) 2020-07-31 11:00:06 -07:00
displaying-data refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
docs-style-guide refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
dynamic-component-loader refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
dynamic-form refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
elements refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
event-binding refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
feature-modules test(docs-infra): fix unit tests and run them for specific docs examples on CI (#36143) 2020-04-06 15:31:07 -07:00
form-validation refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
forms refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
forms-overview feat(core): update reference and doc to change async to waitAsync. (#37583) 2020-08-03 12:54:13 -07:00
getting-started style(docs-infra): fix docs examples for tslint rules related to whitespace (#38143) 2020-07-31 11:00:05 -07:00
getting-started-v0 style(docs-infra): fix docs examples for tslint rules related to whitespace (#38143) 2020-07-31 11:00:05 -07:00
hierarchical-dependency-injection refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
http build(docs-infra): update docs examples to Angular v10 (#38993) 2020-09-28 16:24:59 -04:00
i18n docs: remove duplicate trans-unit element closing tag (#38715) 2020-09-08 10:06:03 -07:00
inputs-outputs refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
interpolation refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
lazy-loading-ngmodules refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
lifecycle-hooks refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
ngcontainer docs: replace class hero to interface wherever class properties not used (#34022) 2019-11-25 11:37:39 -05:00
ngmodules refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
observables test(docs-infra): add unit tests for rxjs examples (#34190) 2020-09-16 15:13:02 -07:00
observables-in-angular test(docs-infra): add unit tests for rxjs examples (#34190) 2020-09-16 15:13:02 -07:00
pipes refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
practical-observable-usage test(docs-infra): add missing unit tests for backoff example (#38896) 2020-09-24 11:33:20 -04:00
property-binding refactor(docs-infra): fix docs examples for tslint rule only-arrow-functions (#38143) 2020-07-31 11:00:06 -07:00
providers refactor(docs-infra): fix docs examples for tslint rule only-arrow-functions (#38143) 2020-07-31 11:00:06 -07:00
providers-viewproviders refactor(docs-infra): fix docs examples for tslint rule only-arrow-functions (#38143) 2020-07-31 11:00:06 -07:00
reactive-forms refactor(docs-infra): fix docs examples for tslint rule only-arrow-functions (#38143) 2020-07-31 11:00:06 -07:00
resolution-modifiers refactor(docs-infra): fix docs examples for tslint rule only-arrow-functions (#38143) 2020-07-31 11:00:06 -07:00
router refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
router-tutorial docs: Add new section, tutorials, to left nav, and a tutorial on routing (#36545) 2020-05-05 11:51:19 -07:00
rx-library test(docs-infra): add missing test for the rx-library docs example (#38905) 2020-09-28 16:20:11 -04:00
schematics-for-libraries feat(core): update reference and doc to change async to waitAsync. (#37583) 2020-08-03 12:54:13 -07:00
security refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
service-worker-getting-started docs(service-worker): add section to explain unrecoverable state (#36847) 2020-08-31 11:41:13 -07:00
set-document-title refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
setup feat(core): update reference and doc to change async to waitAsync. (#37583) 2020-08-03 12:54:13 -07:00
structural-directives refactor(docs-infra): fix docs examples for tslint rule only-arrow-functions (#38143) 2020-07-31 11:00:06 -07:00
styleguide docs: Remove confusion between do/avoid templates (#38647) 2020-08-31 10:25:16 -07:00
template-expression-operators refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
template-reference-variables refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
template-syntax style(docs-infra): fix docs examples for tslint rule import-spacing (#38143) 2020-07-31 11:00:05 -07:00
testing docs: drop newEvent() compatibility function (#37251) 2020-09-17 09:31:17 -07:00
toh-pt0 refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
toh-pt1 refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
toh-pt2 refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
toh-pt3 refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
toh-pt4 refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
toh-pt5 refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
toh-pt6 docs: remove unused Input decorator (#38306) 2020-08-12 11:26:10 -07:00
two-way-binding refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
universal refactor(docs-infra): update docs examples tslint.json to match CLI and fix failures (#38143) 2020-07-31 11:00:06 -07:00
upgrade-lazy-load-ajs build(docs-infra): update docs examples to Angular v10 (#38993) 2020-09-28 16:24:59 -04:00
upgrade-module refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
upgrade-phonecat-1-typescript refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
upgrade-phonecat-2-hybrid feat(core): update reference and doc to change async to waitAsync. (#37583) 2020-08-03 12:54:13 -07:00
upgrade-phonecat-3-final feat(core): update reference and doc to change async to waitAsync. (#37583) 2020-08-03 12:54:13 -07:00
user-input refactor(docs-infra): fix docs examples for tslint rule prefer-const (#38143) 2020-07-31 11:00:06 -07:00
.gitignore build(docs-infra): update docs examples to Angular v10 (#38993) 2020-09-28 16:24:59 -04:00
tsconfig.json build(aio): give intellisense to the examples 2017-04-15 22:15:54 +01:00
tslint.json build(docs-infra): update docs examples to Angular v10 (#38993) 2020-09-28 16:24:59 -04:00