angular-docs-cn/aio/content/guide
George Kalpakas f85a120b7b docs(router): fix code-example headers (#42507)
Previously, the code-examples headers used in the
"Creating custom route matches" tutorial contained the name of the
example directory (`routing-with-urlmatcher`). This was confusing,
because the user was previously instructed to create an app named
`angular-custom-route-match` and switch to that directory.

This commit fixes it by removing the root directory name from the
headers, thus leaving the path of the file relative to the current
working directory. This also aligns with code-examples in other guides.

PR Close #42507
2021-06-07 11:58:20 -07:00
..
accessibility.md docs: edits to remove jargon and abbreviations (#41530) 2021-04-15 16:00:53 -07:00
ajs-quick-reference.md docs: Edits to remove jargon (#42029) 2021-05-25 22:14:30 +00:00
angular-compiler-options.md docs: Edited to remove jargon. (#41978) 2021-05-27 15:36:38 -07:00
animations.md docs: updated animation docs intro section and example (#42046) 2021-05-21 18:09:26 +00:00
aot-compiler.md docs: Edited to remove jargon. (#41978) 2021-05-27 15:36:38 -07:00
aot-metadata-errors.md fix(docs-infra): improve heading styles (#40427) 2021-02-02 12:04:55 -08:00
app-shell.md docs: replace `client-project` in app-shell documentation (#41957) 2021-05-06 09:38:09 -04:00
architecture-components.md docs: Edits to remove jargon in Reference section (#42033) 2021-05-27 16:47:05 -07:00
architecture-modules.md docs: Edits to remove jargon in Reference section (#42033) 2021-05-27 16:47:05 -07:00
architecture-next-steps.md docs: Edits to remove jargon in Reference section (#42033) 2021-05-27 16:47:05 -07:00
architecture-services.md docs: Edits to remove jargon in Reference section (#42033) 2021-05-27 16:47:05 -07:00
architecture.md docs: Edits to remove jargon in Reference section (#42033) 2021-05-27 16:47:05 -07:00
attribute-binding.md docs: edit to remove jargon (#41282) 2021-05-20 23:06:02 +00:00
attribute-directives.md build(docs-infra): ensure that terminal code snippets render correctly (#41986) 2021-05-07 13:11:04 -04:00
binding-syntax.md docs: fix styles in binding guides (#40182) 2020-12-21 10:22:31 -08:00
bootstrapping.md docs: Edits to remove jargon in Reference NgModules (#42182) 2021-06-04 13:32:56 -07:00
browser-support.md docs: Edits to remove jargon in Reference section (#42033) 2021-05-27 16:47:05 -07:00
build.md docs: Edited to remove jargon. (#41978) 2021-05-27 15:36:38 -07:00
built-in-directives.md docs: move helpful alert regarding built-in directives to more logical place (#42226) 2021-05-21 22:13:03 +00:00
cheatsheet.md refactor(docs-infra): simplify code snippet indentation in the "Cheat sheet" guide (#41051) 2021-03-09 08:52:52 -08:00
cli-builder.md docs: update CLI builder to be platform agnostic (#42371) 2021-06-01 10:13:02 -07:00
comparing-observables.md refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
complex-animation-sequences.md docs: remove redundant whitespaces and fix minor typos (#33422) 2019-10-29 11:39:17 -07:00
component-interaction.md docs: clarify the shortcomings of local variable technique for parent-child component interactions (#42331) 2021-05-27 14:04:43 -07:00
component-overview.md docs: review and update components overview guide (#41263) 2021-03-30 16:44:01 -07:00
component-styles.md build(docs-infra): ensure that terminal code snippets render correctly (#41986) 2021-05-07 13:11:04 -04:00
content-projection.md docs: change `project` to `projected` for past tense (#42118) 2021-05-17 10:55:18 -07:00
contributors-guide-overview.md refactor(docs-infra): consistently format `docs-card` elements in the guides (#41250) 2021-04-01 11:19:57 -07:00
creating-libraries.md docs: Edits to remove jargon (#42026) 2021-05-27 15:37:13 -07:00
dependency-injection-in-action.md docs: fix the property name in the example (#41410) 2021-04-16 17:25:39 -07:00
dependency-injection-navtree.md docs: archive di-navtree doc (#39543) 2020-11-12 13:52:04 -08:00
dependency-injection-providers.md docs: fix text jargon from DI notes (#41928) 2021-05-04 08:08:46 -07:00
dependency-injection.md build(docs-infra): ensure that terminal code snippets render correctly (#41986) 2021-05-07 13:11:04 -04:00
deployment.md docs: add a note about javascript mime-types to the deployment guide (#42339) 2021-06-02 13:17:36 -07:00
deprecations.md docs(core): clarify deprecation of `entryComponents` (#42248) 2021-06-07 10:02:01 -07:00
devtools.md docs: embed the devtools video in the corresponding guide (#42161) 2021-05-20 16:55:16 +00:00
docs-style-guide.md docs: include source code styling section in docs style guide (#42227) 2021-05-24 17:38:02 +00:00
dynamic-component-loader.md refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
dynamic-form.md docs: edit to remove jargon (#41282) 2021-05-20 23:06:02 +00:00
elements.md docs: remove `entryComponents` references from the custom elements guide (#42324) 2021-05-26 20:06:00 +00:00
entry-components.md docs: Edits to remove jargon in Reference NgModules (#42182) 2021-06-04 13:32:56 -07:00
event-binding-concepts.md build(docs-infra): implement full template checking for examples (#40930) 2021-02-26 15:40:44 -08:00
event-binding.md docs: add section on binding to passive events (#42292) 2021-05-26 20:06:57 +00:00
example-apps-list.md docs: initial commit of content projection topic. (#41143) 2021-05-05 13:47:27 -07:00
feature-modules.md docs: Edits to remove jargon in Reference NgModules (#42182) 2021-06-04 13:32:56 -07:00
file-structure.md docs: Edits to remove jargon in Reference section (#42033) 2021-05-27 16:47:05 -07:00
form-validation.md Revert "feat(forms): add `ng-submitted` class to forms that have been submitted." (#42474) 2021-06-03 17:42:02 -07:00
forms-overview.md docs(forms): reduce ambiguity in forms data flow wording (#41900) 2021-05-03 10:01:14 -07:00
forms.md Revert "feat(forms): add `ng-submitted` class to forms that have been submitted." (#42474) 2021-06-03 17:42:02 -07:00
frequent-ngmodules.md docs: Edits to remove jargon in Reference NgModules (#42182) 2021-06-04 13:32:56 -07:00
glossary.md docs: remove references to CheckAlways and CheckOnce (#42300) 2021-05-25 17:53:23 +00:00
hierarchical-dependency-injection.md docs: update host and viewproviders section with correct logical tree representation (#42403) 2021-06-03 14:33:44 -07:00
http.md docs: specify correct interceptor class type (#42437) 2021-06-01 16:36:58 -07:00
i18n.md build(docs-infra): ensure that terminal code snippets render correctly (#41986) 2021-05-07 13:11:04 -04:00
inputs-outputs.md docs: make inputs-outputs example more accessible (#41288) 2021-04-26 09:12:17 -07:00
interpolation.md docs: rewrite structural-directives.md (#40015) 2021-03-01 15:32:26 -08:00
ivy-compatibility-examples.md docs: explain foreign function/value constraints in Ivy compatibility examples (#36092) 2020-11-24 13:09:37 -08:00
ivy-compatibility.md docs: add a note about <select> and nested <option>s in Ivy compat guide (#42338) 2021-05-27 11:12:25 -07:00
ivy.md docs: update docs to use new zone.js entry-points (#40823) 2021-02-24 07:58:29 -08:00
language-service.md docs: Edited to remove jargon. (#41978) 2021-05-27 15:36:38 -07:00
lazy-loading-ngmodules.md docs: Edited to remove jargon. (#41978) 2021-05-27 15:36:38 -07:00
libraries.md docs: Edits to remove jargon (#42026) 2021-05-27 15:37:13 -07:00
lifecycle-hooks.md docs: add note to clarify that ngOnChanges is only called if inputs are bound (#42374) 2021-05-26 17:17:25 -07:00
lightweight-injection-tokens.md docs: edits to remove jargon and abbreviations (#41530) 2021-04-15 16:00:53 -07:00
migration-dynamic-flag.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
migration-injectable.md docs: fix migrations formatting (#33267) 2019-12-05 13:06:01 -08:00
migration-legacy-message-id.md docs: add new migration guide to v12 documentation that describes how to migrate older localization ids to new ones (#41828) 2021-05-04 08:09:52 -07:00
migration-localize.md docs: fix migrations formatting (#33267) 2019-12-05 13:06:01 -08:00
migration-module-with-providers.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
migration-renderer.md docs: fix migrations formatting (#33267) 2019-12-05 13:06:01 -08:00
migration-undecorated-classes.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
migration-update-libraries-tslib.md docs: updating guides and docs related to the v10 release (#37705) 2020-06-24 09:37:34 -07:00
migration-update-module-and-target-compiler-options.md docs: fix typo in migration guide (#41447) 2021-04-07 13:51:08 -07:00
module-types.md docs: Edits to remove jargon in Reference NgModules (#42182) 2021-06-04 13:32:56 -07:00
ngmodule-api.md docs: Edits to remove jargon in Reference NgModules (#42182) 2021-06-04 13:32:56 -07:00
ngmodule-faq.md docs: Edits to remove jargon in Reference NgModules (#42182) 2021-06-04 13:32:56 -07:00
ngmodule-vs-jsmodule.md docs: Edits to remove jargon in Reference NgModules (#42182) 2021-06-04 13:32:56 -07:00
ngmodules.md docs: Edits to remove jargon in Reference NgModules (#42182) 2021-06-04 13:32:56 -07:00
npm-packages.md docs: Edits to remove jargon in Reference section (#42033) 2021-05-27 16:47:05 -07:00
observables-in-angular.md docs: edit inputs-outputs copy and headers (#39119) 2020-11-13 11:26:27 -08:00
observables.md docs: clarify observables recommendation (#39237) 2021-02-10 11:04:04 -08:00
pipes.md docs: remove references to CheckAlways and CheckOnce (#42300) 2021-05-25 17:53:23 +00:00
practical-observable-usage.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
property-binding-best-practices.md docs: edit property binding doc (#38799) 2020-10-21 08:23:42 -07:00
property-binding.md fix(docs-infra): improve heading styles (#40427) 2021-02-02 12:04:55 -08:00
providers.md docs: Edits to remove jargon in Reference NgModules (#42182) 2021-06-04 13:32:56 -07:00
reactive-forms.md docs(forms): make the forms validation guide specify more clearly what happens when mixing HTML5 native validators with Angular forms. (#42377) 2021-06-01 10:13:36 -07:00
releases.md docs: Edits to remove jargon (#42029) 2021-05-25 22:14:30 +00:00
reusable-animations.md docs: add example that exports a part of an animation for reuse (#42321) 2021-05-26 20:06:28 +00:00
reviewing-content.md docs: use dedicated anchors for links to `CONTRIBUTING.md` (#41250) 2021-04-01 11:19:57 -07:00
roadmap.md docs: Edits to remove jargon (#42029) 2021-05-25 22:14:30 +00:00
route-animations.md docs: edits to remove jargon and abbreviations (#41530) 2021-04-15 16:00:53 -07:00
router-reference.md docs: move all existing router documentation into a single location and add two new topics: an overview and a reference (#41972) 2021-05-18 15:39:38 -07:00
router-tutorial-toh.md docs: Edits to remove jargon (#42026) 2021-05-27 15:37:13 -07:00
router-tutorial.md docs: Corrected spelling (#42493) 2021-06-07 09:36:18 -07:00
router.md docs: fix typo in the Router guide (#42455) 2021-06-02 13:24:30 -07:00
routing-overview.md docs: move all existing router documentation into a single location and add two new topics: an overview and a reference (#41972) 2021-05-18 15:39:38 -07:00
routing-with-urlmatcher.md docs(router): fix code-example headers (#42507) 2021-06-07 11:58:20 -07:00
rx-library.md test(docs-infra): add unit tests for rx-library examples (#38905) 2020-09-28 16:20:11 -04:00
schematics-authoring.md docs(core): update links to schema.json of @schematics/angular (#39827) 2020-11-24 10:50:30 -08:00
schematics-for-libraries.md docs: ident the library shematics guide properly (#41755) 2021-04-22 08:41:01 -07:00
schematics.md docs: update copy in schematics.md (#41521) 2021-04-15 14:38:06 -07:00
security.md docs: remove references to Trusted Types due to incompatibility with Webpack 5 (#41754) 2021-04-30 14:30:31 -07:00
service-worker-communications.md docs: edits to remove jargon and abbreviations (#41530) 2021-04-15 16:00:53 -07:00
service-worker-config.md docs: edits to remove jargon and abbreviations (#41530) 2021-04-15 16:00:53 -07:00
service-worker-devops.md docs: edits to remove jargon and abbreviations (#41530) 2021-04-15 16:00:53 -07:00
service-worker-getting-started.md docs: Edits to remove jargon (#41536) 2021-04-28 15:11:32 -07:00
service-worker-intro.md docs: edits to remove jargon and abbreviations (#41530) 2021-04-15 16:00:53 -07:00
set-document-title.md docs: apply standard header case convention (#34196) 2020-01-10 08:38:53 -08:00
setup-local.md build(docs-infra): show a dist-tag when installing the CLI on non-stable versions (#41991) 2021-05-10 16:10:33 -04:00
sharing-ngmodules.md docs: Edits to remove jargon in Reference NgModules (#42182) 2021-06-04 13:32:56 -07:00
singleton-services.md docs: Edits to remove jargon in Reference NgModules (#42182) 2021-06-04 13:32:56 -07:00
static-query-migration.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
strict-mode.md docs: clarify the definition of the bundle bundget defaults with strict mode (#42289) 2021-05-25 17:54:05 +00:00
structural-directives.md docs: fix ng-for link in structural-directives.md (#42293) 2021-05-25 02:43:12 +00:00
style-precedence.md docs: fix typos in the Style Precedence guide (#39560) 2020-12-09 09:02:14 -08:00
styleguide.md docs: remove Codelyzer recommendation from style guide (#40992) 2021-03-04 11:01:48 -08:00
svg-in-templates.md docs: Return SVG topic to documentation; light edits for clarity (#40487) 2021-01-19 14:18:51 -08:00
template-expression-operators.md docs: archive template expression operators doc, move pipes precedence section (#39170) 2020-11-24 08:41:18 -08:00
template-reference-variables.md docs: rewrite structural-directives.md (#40015) 2021-03-01 15:32:26 -08:00
template-statements.md docs: rewrite structural-directives.md (#40015) 2021-03-01 15:32:26 -08:00
template-syntax.md docs: edit to remove jargon (#41282) 2021-05-20 23:06:02 +00:00
template-typecheck.md docs: Edited to remove jargon. (#41978) 2021-05-27 15:36:38 -07:00
test-debugging.md docs: clarify the wording around live examples for all testing guides (#42406) 2021-06-02 13:20:13 -07:00
testing-attribute-directives.md docs: clarify the wording around live examples for all testing guides (#42406) 2021-06-02 13:20:13 -07:00
testing-code-coverage.md docs: clarify the wording around live examples for all testing guides (#42406) 2021-06-02 13:20:13 -07:00
testing-components-basics.md docs: clarify the wording around live examples for all testing guides (#42406) 2021-06-02 13:20:13 -07:00
testing-components-scenarios.md docs: clarify the wording around live examples for all testing guides (#42406) 2021-06-02 13:20:13 -07:00
testing-pipes.md docs: clarify the wording around live examples for all testing guides (#42406) 2021-06-02 13:20:13 -07:00
testing-services.md docs: update link to jasmine documentation about spies (#42463) 2021-06-03 10:34:23 -07:00
testing-utility-apis.md docs: add docs for DebugElement (#42352) 2021-05-27 17:02:24 -07:00
testing.md docs: clarify the wording around live examples for all testing guides (#42406) 2021-06-02 13:20:13 -07:00
transition-and-triggers.md docs: remove https://angular.io from internal links (#37157) 2020-05-19 10:11:41 -07:00
two-way-binding.md docs: fix typo in two-way-binding guide (#39859) 2020-11-30 11:15:02 -08:00
typescript-configuration.md docs: clarify how declaration files can be installed (#42417) 2021-06-01 10:17:32 -07:00
universal.md docs: add node.js version info into the universal guide (#42375) 2021-06-04 15:21:21 -07:00
updating-content-github-ui.md docs: correctly style alert in `updating-content-github-ui` guide (#41250) 2021-04-01 11:19:57 -07:00
updating-search-keywords.md docs: several minor fixes/improvements to docs contributing guides (#41250) 2021-04-01 11:19:57 -07:00
updating-to-version-12.md docs: add redirect and update updating-to-v11 to v12 (#41625) 2021-05-06 15:15:08 -04:00
updating.md docs: edits to remove jargon and abbreviations (#41530) 2021-04-15 16:00:53 -07:00
upgrade-performance.md docs: Edits to remove jargon (#42029) 2021-05-25 22:14:30 +00:00
upgrade-setup.md docs: Edits to remove jargon (#42029) 2021-05-25 22:14:30 +00:00
upgrade.md docs: Edit correction to remove jargon in Release section (#42029) 2021-05-25 22:14:30 +00:00
user-input.md docs: update docs to use new zone.js entry-points (#40823) 2021-02-24 07:58:29 -08:00
using-libraries.md docs: Edited to remove jargon, fixed issue (#42026) 2021-05-27 15:37:14 -07:00
view-encapsulation.md docs(core): fix typos in the "View Encapsulation" guide (#39246) 2020-12-08 08:53:36 -08:00
web-worker.md docs: update web-worker syntax (#42306) 2021-05-25 17:52:58 +00:00
what-is-angular.md docs: minor update to what is Angular topic (#41123) 2021-03-17 09:01:35 -07:00
workspace-config.md docs: Edits to remove jargon in Reference section (#42033) 2021-05-27 16:47:05 -07:00
zone.md docs: update docs to use new zone.js entry-points (#40823) 2021-02-24 07:58:29 -08:00