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
When defining the crisisCenterRoutes and the CrisisDetail in particular there should a be a snippet showing something like :
{
path: 'crisis-center/:id'
component : CrisisDetailComponent,
resolve : [ CrisisDetailResolver ]
}
if you only add CrisisDetailResolver to the providers array for CrisisCenterRoutingModule then resolver is not hit and it doesn't know when it should be applied. This has gone missing from the docs somehow and is quite important to understand the resolve mechanism
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Expected behavior
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
Angular version: X.Y.Z
Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: XX
- Platform:
Others:
changed the title [-]in url https://angular.io/guide/router and headline , Resolve: pre-fetching component data[/-][+]Clarify Router information about resolve[/+]on Jun 4, 2018
Activity
gkalpak commentedon Aug 5, 2017
I assume you are referring the Fetch data before navigating section. The need to add a
resolveproperty is mentioned in the text:And the code is updated in
crisis-center-routing.module.ts(as can be seen right below "The relevant Crisis Center code for this milestone follows.").Are you suggesting the there should be a dedicated snippet?
[-]in url https://angular.io/guide/router and headline , Resolve: pre-fetching component data[/-][+]Clarify Router information about resolve[/+]brandonroberts commentedon Sep 26, 2018
Fixed via #20023
angular-automatic-lock-bot commentedon Sep 14, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.