angular-cn/aio/content/examples
Sonu Kapoor a7d5c55926 docs: fix routing code to use `navigate` (#35176)
Previously, the example in the `router` guide was not
preserving the query params after logging in.

This commit fixes this by using `navigate` instead of
using `navigateByUrl`, which ignores any properties in
the `NavigationExtras` that would change the provided URL.

Fixes 34917

PR Close #35176
2020-02-24 09:00:03 -08:00
..
accessibility build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
ajs-quick-reference docs: remove gender prefixes from examples (#29972) 2019-05-20 16:42:59 -07:00
animations docs(animations): increase wait time for status-slider animation (#35089) 2020-02-04 15:57:37 -08:00
architecture build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
attribute-binding docs(ivy): add docs for styling priority order (#35066) 2020-02-06 09:33:28 -08:00
attribute-directives build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
binding-syntax test: clean up explicit dynamic query usages (#33015) 2019-10-17 16:10:10 -04:00
bootstrapping docs: update docs example dependencies to version 8 (#30385) 2019-05-17 14:16:55 -07:00
built-in-directives docs: include svg files in stackblitz and download examples (#31559) 2019-07-15 16:48:23 -04:00
built-in-template-functions docs: edit $any() section and add example in Template Syntax (#28157) 2019-03-19 13:19:17 -04: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/src fix(docs-infra): convert hard-coded `comparing-observables` examples into a proper mini-app (#34327) 2020-01-21 13:14:46 -05:00
component-interaction build(docs-infra): use `puppeteer` to get a browser for docs examples tests (#35381) 2020-02-18 12:42:47 -08:00
component-styles build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
dependency-injection build(docs-infra): use `puppeteer` to get a browser for docs examples tests (#35381) 2020-02-18 12:42:47 -08:00
dependency-injection-in-action fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type (#35150) 2020-02-07 09:58:31 -08:00
displaying-data build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
docs-style-guide build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
dynamic-component-loader build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
dynamic-form build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
elements build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
event-binding docs(core): fix typo in event-binding code example (#31611) 2019-07-17 13:26:48 -04:00
feature-modules docs: update docs example dependencies to version 8 (#30385) 2019-05-17 14:16:55 -07:00
form-validation build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
forms build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
forms-overview build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
getting-started docs: Fix minor typos and coding styles (#35325) 2020-02-13 13:31:30 -08:00
getting-started-v0 build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
hierarchical-dependency-injection build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
http build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
i18n build(docs-infra): use `puppeteer` to get a browser for docs examples tests (#35381) 2020-02-18 12:42:47 -08:00
inputs-outputs docs: rewrite inputs/outputs section of Template Syntax (#27685) 2019-06-14 11:53:13 -07:00
interpolation docs: edit $any() section and add example in Template Syntax (#28157) 2019-03-19 13:19:17 -04:00
lazy-loading-ngmodules build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
lifecycle-hooks test: clean up explicit dynamic query usages (#33015) 2019-10-17 16:10:10 -04:00
ngcontainer docs: replace class hero to interface wherever class properties not used (#34022) 2019-11-25 11:37:39 -05:00
ngmodule-faq/src/app docs: remove coremodule references (#28434) 2019-03-29 10:29:51 -07:00
ngmodules fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type (#35150) 2020-02-07 09:58:31 -08:00
observables test(docs-infra): compile only app for examples with no e2e (#33717) 2020-01-14 16:42:22 -08:00
observables-in-angular test(docs-infra): compile only app for examples with no e2e (#33717) 2020-01-14 16:42:22 -08:00
pipes docs: correct types in transform method to match specification. (#29812) 2019-05-15 14:24:20 -07:00
practical-observable-usage test(docs-infra): compile only app for examples with no e2e (#33717) 2020-01-14 16:42:22 -08:00
property-binding docs: replace from class hero to interface with accordance with # 344022 (#34294) 2020-01-13 07:25:19 -08:00
providers docs: update docs example dependencies to version 8 (#30385) 2019-05-17 14:16:55 -07:00
providers-viewproviders fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type (#35150) 2020-02-07 09:58:31 -08:00
reactive-forms build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
resolution-modifiers fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type (#35150) 2020-02-07 09:58:31 -08:00
router docs: fix routing code to use `navigate` (#35176) 2020-02-24 09:00:03 -08:00
rx-library test(docs-infra): compile only app for examples with no e2e (#33717) 2020-01-14 16:42:22 -08:00
schematics-for-libraries refactor(core): Migrate TestBed.get to TestBed.inject (#32382) 2019-09-09 19:10:54 -04:00
security build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
service-worker-getting-started build(docs-infra): use `puppeteer` to get a browser for docs examples tests (#35381) 2020-02-18 12:42:47 -08:00
set-document-title build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
setup build(docs-infra): remove unused StackBlitz/ZIP configurations for `setup` example (#31937) 2019-08-05 09:54:52 -07:00
structural-directives build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
styleguide fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type (#35150) 2020-02-07 09:58:31 -08:00
template-expression-operators docs: edit and add example for Template Expression Operators section of Template Syntax (#28087) 2019-06-14 11:53:50 -07:00
template-reference-variables test: clean up explicit dynamic query usages (#33015) 2019-10-17 16:10:10 -04:00
template-syntax test: clean up explicit dynamic query usages (#33015) 2019-10-17 16:10:10 -04:00
testing feat: add an tickOptions parameter with property processNewMacroTasksSynchronously. (#33838) 2020-02-20 15:14:59 -08:00
toh-pt0 build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
toh-pt1 build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
toh-pt2 build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
toh-pt3 build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
toh-pt4 docs: remove service from region where it was added before it was created (#35354) 2020-02-12 16:46:22 -08:00
toh-pt5 build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
toh-pt6 build(docs-infra): always specify a landing file for StackBlitz projects (#34553) 2020-01-22 13:45:23 -08:00
two-way-binding docs: add example and edit two-way-binding section of Template Syntax (#26278) 2019-06-14 11:50:03 -07:00
universal fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type (#35150) 2020-02-07 09:58:31 -08:00
upgrade-lazy-load-ajs docs: add tests for lazy loading angularjs example (#30622) 2019-06-28 09:26:49 -07:00
upgrade-module docs: migrate examples from @angular/http to @angular/common/http (#28296) 2019-03-11 10:52:17 -07:00
upgrade-phonecat-1-typescript feat: make the Ivy compiler the default for ngc (#32219) 2019-08-20 16:41:08 -07:00
upgrade-phonecat-2-hybrid feat: make the Ivy compiler the default for ngc (#32219) 2019-08-20 16:41:08 -07:00
upgrade-phonecat-3-final feat: make the Ivy compiler the default for ngc (#32219) 2019-08-20 16:41:08 -07:00
user-input docs(docs-infra): use recommended type assertion (#31042) 2019-10-02 13:25:39 -07:00
visual-studio-2015 feat: make the Ivy compiler the default for ngc (#32219) 2019-08-20 16:41:08 -07:00
.gitignore docs: update docs example dependencies to version 8 (#30385) 2019-05-17 14:16:55 -07:00
tsconfig.json build(aio): give intellisense to the examples 2017-04-15 22:15:54 +01:00
tslint.json refactor: remove tslint no-use-before-declare rule (#30288) 2019-05-07 10:25:36 -07:00