MCPcopy Create free account
hub / github.com/angular/components / guideResolver

Function guideResolver

docs/src/app/pages/guide-viewer/guide-resolver.ts:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 * guide with that id.
16 */
17export const guideResolver: ResolveFn<GuideItem> = route => {
18 const guide = inject(GuideItems).getItemById(route.params['id']);
19 return guide ?? new RedirectCommand(inject(Router).parseUrl('/guides'));
20};

Callers

nothing calls this directly

Calls 1

getItemByIdMethod · 0.45

Tested by

no test coverage detected