runGuardsAndResolvers documentation doesn’t clearly describe when it’s used #46001
Labels
comp: docs
Anything related to doc content, incl guides, API reference, tutorial, web content
comp: router
good first issue
An issue that is suitable for first-time contributors; often a documentation issue.
P4
Low-priority issue that needs to be resolved
Milestone
Which @angular/* package(s) are the source of the bug?
router
Is this a regression?
No
Description
The Documentation suggests that you can supply a function to runGuardsAndResolvers . The link will take you to the documentation where it gives the type.
So I supplied the following and saw that not only was my route guard still being run, but the console log was not output.
It seems something is not working as described in the documentation. So either it's a bug or the documentation is misleading?
Please provide a link to a minimal reproduction of the bug
I don't have time to do this. I'll figure out another solution if needed.
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
I have seen runGuardsAndResolvers work in an older version of angular, but it was about a year and a half ago since I implemented that and it was for a different website.
The text was updated successfully, but these errors were encountered: