angular-cn/packages
Ahmed Ayed e05a6f3bb3 feat(common): add `historyGo` method to `Location` service (#38890)
Add new method `historyGo`, that will let
the user navigate to a specific page from session history identified by its
relative position to the current page.

We add some tests to `location_spec.ts` to validate the behavior of the
`historyGo` and `forward` methods.

Add more tests for `location_spec` to test `location.historyGo(0)`, `location.historyGo()`,
`location.historyGo(100)` and `location.historyGo(-100)`. We also add new tests for
`Integration` spec to validate the navigation when we using
`location#historyGo`.

Update the `historyGo` function docs

Note that this was made an optional function in the abstract classes to
avoid a breaking change. Because our location classes use `implements PlatformLocation`
rather than `extends PlatformLocation`, simply adding a default
implementation was not sufficient to make this a non-breaking change.
While we could fix the classes internal to Angular, this would still have been
a breaking change for any external developers who may have followed our
implementations as an example.

PR Close #38890
2021-04-06 09:25:58 -07:00
..
animations feat(core): support TypeScript 4.2 (#41158) 2021-03-17 09:10:25 -07:00
bazel fix(dev-infra): exclude node_modules from circular dependency checks (#41407) 2021-04-02 15:47:33 -07:00
benchpress fix(dev-infra): update type castings for JSON.parse usage (#40710) 2021-02-09 10:48:43 -08:00
common feat(common): add `historyGo` method to `Location` service (#38890) 2021-04-06 09:25:58 -07:00
compiler fix(compiler): include used components during JIT compilation of partial component declaration (#41353) 2021-04-01 11:39:41 -07:00
compiler-cli refactor(compiler): remove dependency on fs-extra (#41445) 2021-04-05 15:04:50 -07:00
core perf(core): add private hooks around user code executed by the runtime (#41255) 2021-04-02 10:34:23 -07:00
docs docs(di): fix typo in advanced di doc (#36634) 2020-05-01 09:50:28 -07:00
elements ci: fix `elements` test on older browsers (#41324) 2021-03-24 08:28:46 -07:00
examples docs: improve description, examples of DecimalPipe's digitsInfo parameter (#40714) 2021-02-26 15:42:29 -08:00
forms docs(forms): fix the short description for `DefaultValueAccessor` (#41409) 2021-04-01 12:07:03 -07:00
language-service fix(language-service): Only provide Angular property completions in templates (#41278) 2021-04-01 11:37:30 -07:00
localize build: update yargs dependency to 16.2.0. (#41351) 2021-03-30 16:59:38 -07:00
misc/angular-in-memory-web-api build(docs-infra): support building the local `angular-in-memory-web-api` package in `NgPackagesInstaller` (#41313) 2021-03-29 15:14:16 -07:00
platform-browser fix(platform-browser): configure `XhrFactory` to use `BrowserXhr` (#41313) 2021-03-29 15:14:16 -07:00
platform-browser-dynamic feat(core): support TypeScript 4.2 (#41158) 2021-03-17 09:10:25 -07:00
platform-server fix(platform-browser): configure `XhrFactory` to use `BrowserXhr` (#41313) 2021-03-29 15:14:16 -07:00
private/testing build: update .bazelversion (#40579) 2021-01-26 11:35:54 -08:00
router feat(common): add `historyGo` method to `Location` service (#38890) 2021-04-06 09:25:58 -07:00
service-worker feat(core): support TypeScript 4.2 (#41158) 2021-03-17 09:10:25 -07:00
upgrade feat(core): support TypeScript 4.2 (#41158) 2021-03-17 09:10:25 -07:00
zone.js feat(core): support TypeScript 4.2 (#41158) 2021-03-17 09:10:25 -07:00
BUILD.bazel build: replace @types/trusted-types dep with minimal type defs (#39211) 2020-10-15 09:08:00 -07:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
circular-deps-test.conf.js fix(platform-webworker): remove platform-webworker and platform-webworker-dynamic (#38846) 2020-09-30 09:13:59 -04:00
empty.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
goog.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
license-banner.txt docs: update year (#40925) 2021-02-22 12:37:40 -08:00
system.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tsconfig-build-no-strict.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-build.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-test.json refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
tsconfig.json fix(platform-webworker): remove platform-webworker and platform-webworker-dynamic (#38846) 2020-09-30 09:13:59 -04:00
types.d.ts build: replace @types/trusted-types dep with minimal type defs (#39211) 2020-10-15 09:08:00 -07:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT