angular_router 2.0.0-alpha+17 angular_router: ^2.0.0-alpha+17 copied to clipboard
Router for AngularDart.
2.0.0-alpha+16 #
- Maintenence release; declare official support for the Dart2 SDK.
2.0.0-alpha+15 #
Breaking changes #
- Removed component instance parameter from
RouterHook.canNavigate()
.
2.0.0-alpha+14 #
Bug fixes #
-
Preserves
NavigationParams
on redirection. -
Added
canNavigate
toRouterHook
. -
Navigation will no longer succeed for an empty path if it doesn't match a route.
2.0.0-alpha+13 #
New features #
- Moved
normalizePath()
from an internal type toLocation
to give fine-grained control over path normalization.
Bug fixes #
-
Fixed a regression where the
RouterLinkActive
directive would not activate for empty paths (including'/'
). -
Fixed a bug where if a component threw an exception during routing the router would get in a perpetual bad state where it was impossible to route away or otherwise use the application.
2.0.0-alpha+12 #
Breaking changes #
- Renamed the
platformStrategy
field ofLocation
tolocationStrategy
, since it's of typeLocationStrategy
.
2.0.0-alpha+10 #
Breaking changes #
- The minimum SDK version is now
sdk: ">=2.0.0-dev.46.0 <2.0.0"
.
Bug fixes #
- Router navigation requests are now queued to ensure they'll run sequentially in the order they were requested. Previously no attempt was made to synchronise navigation requests, and if multiple were made simultaneously they could run concurrently, interfere with each other, and potentially complete out of order.
2.0.0-alpha+9 #
Breaking changes #
-
APP_BASE_HREF
was removed in favor ofappBaseHref
. -
When navigating to and from the same implementation of
CanReuse
, if it returns true, the implementation will remain attached to the DOM. Previously, components were unconditionally detached from the DOM on navigation, and reusable components would simply be reattached.This may be a change to the scroll behavior of your components, as temporarily removing reused components from the DOM could reset the scroll position if no other content was present.
Bug fixes #
CanNavigate
,CanDeactivate
, andOnDeactivate
should now always be invoked on the active instance of a component rather than the instance created during route resolution. This previously could occur when navigating away and back to a nested route whose parent was not reusable.
2.0.0-alpha+7 #
Breaking changes #
-
RouterOutlet
is no longer injectable. -
Renamed
Router.stream
toRouter.onRouteActivated
.Router.stream
is 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.onNavigationStart
to notify subscribers when a navigation request starts. -
Added the
routerProvidersTest
module 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 ofpopstate
events 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.onPopState
is now unchanged fromLocationStrategy.onPopState
.
2.0.0-alpha+4 #
Breaking changes #
- Removed
SpyLocation
.MockLocationStrategy
should 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
CanNavigate
lifecycle interface. This is similar toCanDeactivate
, and preferred when the nextRouterState
isn't necessary to determine whether the router may navigate. -
Added
reload
field toNavigationParams
which can be used to force navigation, even if the path and other navigation parameters are unchanged. -
Added
replace
field toNavigationParams
which can be used to replace the current history entry on navigation instead of creating a new one.
Breaking changes #
- Removed
hashCode
andoperator ==
overrides fromRouteDefinition
andRouterState
, as these can't be removed by tree-shaking.
Bug fixes #
- Upon destruction,
RouterOutlet
will now properly destroy all of its cached components, instead of only destroying the active one.
2.0.0-alpha+2 #
- Fixed a bug where
RouterLinkDirective
was 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_router
package. For a migration guide fromangular_router
v1, see https://github.com/dart-lang/angular/blob/master/doc/router/migration.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.