mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This further builds out the Router integration with the platform Navigation API. Key features in this state include: * History restoration via direct platform APIs rather than markers left on `history.state`. This means more guaranteed correctness and less internal code to compute traversal restorations. * Ability to observe navigations triggered outside the Router APIs. Practically speaking, this means some navigations can be performed through the platform rather than requiring `Router.navigate`. Note that because the `NavigateEvent` is never intercepted at this point of the implementation, regular anchor tags cannot be used because they will still trigger a popstate navigation. This implementation does _not_ intercept the `NavigateEvent` but future iterations should. By omitting the interception, we are missing out on features such as: * Platform-supported scroll and focus reset * Holding the navigate event open for the duration of the router navigation, allowing for a visual loading indicator in the browser * Support for intercepting navigations from regular anchor tags (e.g. not `RouterLink`s) and converting those to SPA navigations. PR Close #64905
39 lines
964 B
JSON
39 lines
964 B
JSON
{
|
|
"name": "@angular/router",
|
|
"version": "0.0.0-PLACEHOLDER",
|
|
"description": "Angular - the routing library",
|
|
"keywords": [
|
|
"angular",
|
|
"router"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/angular/angular.git",
|
|
"directory": "packages/router"
|
|
},
|
|
"author": "angular",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/angular/angular/issues"
|
|
},
|
|
"homepage": "https://github.com/angular/angular/tree/main/packages/router",
|
|
"dependencies": {
|
|
"tslib": "^2.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/dom-navigation": "^1.0.5"
|
|
},
|
|
"peerDependencies": {
|
|
"@angular/core": "0.0.0-PLACEHOLDER",
|
|
"@angular/common": "0.0.0-PLACEHOLDER",
|
|
"@angular/platform-browser": "0.0.0-PLACEHOLDER",
|
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
},
|
|
"ng-update": {
|
|
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
|
|
},
|
|
"sideEffects": false
|
|
}
|