angular/aio/content/examples
Andrew Scott e7948d30c5 docs(router): Update component testing to user RouterTestingHarness (#48553)
This commit updates the documentation on testing the
`Router` to use the `RouterTestingHarness` rather than stubs.

The stubs described in the previous form of this document actually
creates tests which are incapable of catching bugs related to the
component's interaction with the `Router`. In addition, managing the
stubs is more difficult than using the real `Router` classes.

Stubbing something like the `RouterLink` is quite harmful because it
neither tests the actual URL being created, nor the end result of the
navigation. There have been serveral bug fixes in the Router over the
years the would change the outcome of these but would not be caught by
tests which create a stub.

PR Close #48553
2023-03-02 13:17:17 -08:00
..
accessibility build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
ajs-quick-reference build(docs-infra): replace base64 images for stackblitz by svgs (#48774) 2023-01-24 16:39:28 +00:00
angular-compiler-options build(bazel): fix aio example systemjs tests for locally linked packages 2022-11-22 13:51:16 -07:00
angular-linker-plugin docs: fix ellipsis in code-snippet in creating-libraries guide (#45820) 2022-05-09 11:08:46 -07:00
animations refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
architecture build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
attribute-binding docs(docs-infra): update precedence of binding dynamic example and commentary (#48636) 2023-01-04 12:16:40 -08:00
attribute-directives docs: removed empty methods (#48343) 2022-12-05 12:03:33 -08:00
binding-syntax build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
bootstrapping build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
built-in-directives docs: removed empty method (#48236) 2022-12-01 09:39:09 -08:00
built-in-template-functions build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
cli-builder/src docs: update CLI builder to be platform agnostic (#42371) 2021-06-01 10:13:02 -07:00
comparing-observables build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
component-interaction build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
component-overview build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
component-styles build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
content-projection build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
dependency-injection docs: removed empty methods (#48343) 2022-12-05 12:03:33 -08:00
dependency-injection-in-action docs: removed empty method (#48236) 2022-12-01 09:39:09 -08:00
deprecation-guide docs: updated local variables and removed empty methods (#48344) 2022-12-09 09:56:07 -08:00
displaying-data docs: updated local variables and removed empty methods (#48344) 2022-12-09 09:56:07 -08:00
docs-style-guide build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
dynamic-component-loader build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
dynamic-form docs: cleanup the components (#48382) 2022-12-09 13:31:45 -08:00
elements build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
errors/cyclic-imports refactor(compiler-cli): error on cyclic imports in partial compilation (#40782) 2021-02-17 06:53:38 -08:00
event-binding docs: updated local variables and removed empty methods (#48344) 2022-12-09 09:56:07 -08:00
feature-modules docs: removed empty methods (#48230) 2022-11-28 09:13:19 -08:00
first-app-lesson-01 docs: add first-app-lesson-01 example (#48512) 2023-01-12 11:44:05 -08:00
first-app-lesson-02 docs: add first-app-lesson-02 example (#48512) 2023-01-12 11:44:06 -08:00
first-app-lesson-03 docs: add first-app-lesson-03 example (#48512) 2023-01-12 11:44:06 -08:00
first-app-lesson-04 refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
first-app-lesson-05 refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
first-app-lesson-06 refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
first-app-lesson-07 refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
first-app-lesson-08 refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
first-app-lesson-09 refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
first-app-lesson-10 refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
first-app-lesson-11 refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
first-app-lesson-12 refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
first-app-lesson-13 refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
form-validation build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
forms build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
forms-overview build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
getting-started docs: updated docs removed unnecessary imports and empty methods (#48428) 2022-12-12 09:39:22 -08:00
getting-started-v0 build(bazel): selectively enable network access for some aio targets 2022-11-22 13:51:16 -07:00
hierarchical-dependency-injection build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
http build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
i18n build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
inputs-outputs build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
interpolation build(docs-infra): replace base64 images for stackblitz by svgs (#48774) 2023-01-24 16:39:28 +00:00
lazy-loading-ngmodules docs: updated docs removed unnecessary imports and empty methods (#48513) 2022-12-21 13:08:18 +00:00
lifecycle-hooks build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
ngcontainer build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
ngmodules docs: updated docs removed unnecessary imports and empty methods (#48428) 2022-12-12 09:39:22 -08:00
observables build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
observables-in-angular build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
pipes build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
practical-observable-usage build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
property-binding build(docs-infra): replace base64 images for stackblitz by svgs (#48774) 2023-01-24 16:39:28 +00:00
providers docs: updated docs removed unnecessary imports and empty methods (#48428) 2022-12-12 09:39:22 -08:00
providers-viewproviders build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
reactive-forms build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
resolution-modifiers build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
router docs: fix crisis-center / crisis-list route parameter (#48853) 2023-01-26 22:01:42 +00:00
router-tutorial build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
routing-with-urlmatcher build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
rx-library build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
schematics-for-libraries docs: updated docs removed unnecessary imports and empty methods (#48628) 2023-01-10 08:06:04 -08:00
security build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
service-worker-getting-started build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
setup build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
structural-directives build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
styleguide docs: remove unused style guides. (#48587) 2023-01-11 14:57:09 -08:00
template-expression-operators build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
template-reference-variables build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
template-syntax build(docs-infra): replace base64 images for stackblitz by svgs (#48774) 2023-01-24 16:39:28 +00:00
testing docs(router): Update component testing to user RouterTestingHarness (#48553) 2023-03-02 13:17:17 -08:00
toh-pt0 build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
toh-pt1 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt2 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt3 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt4 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt5 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt6 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
two-way-binding docs: remove empty constructors & ngOnInit() (#48576) 2023-01-05 14:49:38 -08:00
universal docs: update universal example (#48665) 2023-01-10 08:09:54 -08:00
upgrade-lazy-load-ajs docs: remove empty constructors & ngOnInit() (#48576) 2023-01-05 14:49:38 -08:00
upgrade-module build(bazel): mark an AIO sjs e2e test as flakey (#48331) 2022-12-05 12:02:29 -08:00
upgrade-phonecat-1-typescript build(bazel): selectively enable network access for some aio targets 2022-11-22 13:51:16 -07:00
upgrade-phonecat-2-hybrid build(bazel): mark a couple of aio example tests as flaky 2022-11-22 13:51:16 -07:00
upgrade-phonecat-3-final build(bazel): mark a couple of aio example tests as flaky 2022-11-22 13:51:16 -07:00
user-input build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
view-encapsulation build(bazel): remaining AIO Bazel migration fixes 2022-11-22 13:51:16 -07:00
what-is-angular build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
.eslintrc.json refactor(docs-infra): Enable @typescript-eslint/quotes rule for aio content (#48952) 2023-02-06 12:33:23 -08:00
BUILD.bazel build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
examples.bzl docs: add first-app-lesson-13 example (#48512) 2023-01-12 11:44:07 -08:00
tsconfig.eslint.json refactor(docs-infra): use eslint in aio's example-lint script (#43218) 2021-12-15 12:28:46 -05:00