angular-cn/aio/tests/e2e/src
George Kalpakas 43ac02e566 fix(docs-infra): scroll to top when navigating to new page via address bar (#33344)
Previously, when navigating to a new page via a link, the scroll
position was correctly restored to 0, but navigating to a new page via
typing the URL in the browser address bar keeps the old scroll position.

This commit ensures that the scroll position is restored to 0 whenever
the `ScrollService` is instantiated anew (i.e. new page navigation). The
old behavior of retaining the scroll position on reload is kept by
storing the old URL when leaving a page and only applying the stored
scroll position if the new URL matches the stored one.

Fixes #33260

PR Close #33344
2019-10-23 09:12:02 -07:00
..
api.e2e-spec.ts build(docs-infra): upgrade @angular/cli to 8.0.0-beta.18 (#29926) 2019-04-25 12:32:49 -07:00
api.po.ts build(docs-infra): make type-checking stricter by enabling `noImplicitAny` (#29926) 2019-04-25 12:32:49 -07:00
app.e2e-spec.ts fix(docs-infra): scroll to top when navigating to new page via address bar (#33344) 2019-10-23 09:12:02 -07:00
app.po.ts fix(docs-infra): scroll to top when navigating to new page via address bar (#33344) 2019-10-23 09:12:02 -07:00
onerror.e2e-spec.ts build(docs-infra): make type-checking stricter by enabling `noImplicitAny` (#29926) 2019-04-25 12:32:49 -07:00
scroll.e2e-spec.ts fix(docs-infra): scroll to top when navigating to new page via address bar (#33344) 2019-10-23 09:12:02 -07:00
search.e2e-spec.ts build(docs-infra): make type-checking stricter by enabling `noImplicitAny` (#29926) 2019-04-25 12:32:49 -07:00