angular_router 2.0.0-alpha+8
angular_router: ^2.0.0-alpha+8 copied to clipboard
Router for AngularDart.
2.0.0-alpha+7 #
Breaking changes #
-
RouterOutletis no longer injectable. -
Renamed
Router.streamtoRouter.onRouteActivated.Router.streamis now deprecated and will be removed after next release.
Bug fixes #
RouterPath.toUrl()no longer generates an incorrect URL with an extra '/' when a parent route has an empty path.
2.0.0-alpha+5 #
New features #
-
Added
Router.onNavigationStartto notify subscribers when a navigation request starts. -
Added the
routerProvidersTestmodule for testing route configurations or components with router dependencies.
Breaking changes #
- Removed fuzzy arrow from
MockLocationStrategy. It relied on Dart 1's treatment of dynamic as bottom to mock handling ofpopstateevents without actually relying ondart:html. Since Angular must be tested in the browser anyways, there's no incentive to avoid this dependency. As a consequence, the signature ofMockLocationStrategy.onPopStateis now unchanged fromLocationStrategy.onPopState.
2.0.0-alpha+4 #
Breaking changes #
- Removed
SpyLocation.MockLocationStrategyshould be used instead.
Bug fixes #
-
Prevented
canDeactivate()from being invoked twice during redirection. It will now only be invoked with the redirected next router state, without also being invoked with the intermediate next router state. -
Prevented
canNavigate()from being invoked twice during redirection.
2.0.0-alpha+3 #
New features #
-
Added the
CanNavigatelifecycle interface. This is similar toCanDeactivate, and preferred when the nextRouterStateisn't necessary to determine whether the router may navigate. -
Added
reloadfield toNavigationParamswhich can be used to force navigation, even if the path and other navigation parameters are unchanged. -
Added
replacefield toNavigationParamswhich can be used to replace the current history entry on navigation instead of creating a new one.
Breaking changes #
- Removed
hashCodeandoperator ==overrides fromRouteDefinitionandRouterState, as these can't be removed by tree-shaking.
Bug fixes #
- Upon destruction,
RouterOutletwill now properly destroy all of its cached components, instead of only destroying the active one.
2.0.0-alpha+2 #
- Fixed a bug where
RouterLinkDirectivewas not keyboard accessible.
2.0.0-alpha+1 #
- Support for angular 5.0.0-alpha+1
2.0.0-alpha #
- Major refactoring of the
angular_routerpackage. For a migration guide fromangular_routerv1, see https://github.com/dart-lang/angular/blob/master/angular_router/g3doc/migration_guide.md.
1.0.2 #
- Support for angular 4.0.0.
1.0.1 #
- Minor internal changes to support angular 4.0.0-beta
1.0.0 #
- Initial commit of
angular_router. This is just a port of the router that was in the core angular package.