You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose strategies that correspond to string values of runGuardsAndResolvers #53946
Which @angular/* package(s) are relevant/related to the feature request?
router
Description
Given that runGuardsAndResolvers may take a custom strategy in form of a function, it makes sense to expose the set of predefined strategies 'pathParamsChange' | 'pathParamsOrQueryParamsChange' | 'paramsChange' | 'paramsOrQueryParamsChange' | 'always' so that consumers can compose with them, as was done in case of defaultUrlMatcher, see #35928. Also related #31843 (comment)
Proposed solution
Make the strategies part of public api:
import { RunGuardsAndResolversStrategies } from '@angular/router';
Copy paste the code from Angular source code or reimplement said strategies.
Reacted by Filip Voska, Darko Raguž, Mihael Šafarić, Josip Januš, Paul Catuna, Ivana Leto, Suraj Chopra, Ghoul649, Mickaël Olaria, Samuel Fernández and 2 more
This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.
You can find more details about the feature request process in our documentation.
Activity
angular-robot commentedon Jan 17, 2024
This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.
You can find more details about the feature request process in our documentation.