feat(router): add new initialNavigation options to replace legacy #37480
Conversation
e338c5e
to
da67485
If there any deprecation documentation or similar we can link to in the commit message here?
dfb9df0
to
ca4ed7c
|
I have learned since the last time I looked at this that there's a deprecation guide that outlines deprecations and what people should do about them. Should the changes here be included in there? |
|
@jelbourn Since this PR does not actually deprecate/remove (and is outside a major version), I don’t think now is the time to add it. These options can be used independent of a deprecation plan. The deprecation guide update is captured in #33128, which was bumped from v10 to v11 and will land when we open up the v11 release train. |
LGTM
Reviewed-for: public-api
c72b4cb
to
328decd
5595b1d
to
a061ab9
|
You can preview 424336c at https://pr37480-424336c.ngbuilds.io/. |
|
You can preview 78627e3 at https://pr37480-78627e3.ngbuilds.io/. |
Reviewed-for: public-api
Minor docs suggestions.
Thanks for the changes @CaerusKaru
I've just left a couple comments, but all of them are minor.
Reviewed-for: public-api
Adding a review from size tracking group...
Reviewed-for: size-tracking
As of Angular v4, four of the options for `ExtraOptions#initialNavigation` have been deprecated. We intend to remove them in v11. The final state for these options is: `enabledBlocking`, `enabledNonBlocking`, and `disabled`. We plan to remove and deprecate the remaining option in the next two major releases. New options: - `enabledNonBlocking`: same as legacy_enabled - `enabledBlocking`: same as enabled BREAKING CHANGE: * The `initialNavigation` property for the options in `RouterModule.forRoot` no longer supports `legacy_disabled`, `legacy_enabled`, `true`, or `false` as valid values. `legacy_enabled` (the old default) is instead `enabledNonBlocking` * `enabled` is deprecated as a valid value for the `RouterModule.forRoot` `initialNavigation` option. `enabledBlocking` has been introduced to replace it
|
You can preview 7e77995 at https://pr37480-7e77995.ngbuilds.io/. |
reviewed-for: size-tracking
|
presubmit (this will require a g3 patch, see cl/336894045) |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
As of Angular v4, four of the options for
ExtraOptions#initialNavigationhave been deprecated. We intendto remove them in v11. The final state for these options is:
enabledBlocking,enabledNonBlocking, anddisabled. We planto remove and deprecate the remaining option in the next two
major releases.
New options:
enabledNonBlocking: same as legacy_enabledenabledBlocking: same as enabledBREAKING CHANGE:
initialNavigationproperty for the options inRouterModule.forRootno longer supportslegacy_disabled,legacy_enabled,true, orfalseas valid values.legacy_enabled(the old default) is insteadenabledNonBlockingenabledis deprecated as a valid value for theRouterModule.forRootinitialNavigationoption.enabledBlockinghas been introduced to replace it
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
The text was updated successfully, but these errors were encountered: