MCPcopy
hub / github.com/angular/angular / EditorUiState

Class EditorUiState

adev/src/app/editor/editor-ui-state.service.ts:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17@Service({autoProvided: false})
18export class EditorUiState {
19 private readonly environmentInjector = inject(EnvironmentInjector);
20
21 tutorialType = toSignal(
22 from(injectEmbeddedTutorialManager(this.environmentInjector)).pipe(
23 switchMap((embeddedTutorialManager) =>
24 embeddedTutorialManager.tutorialChanged$.pipe(map(() => embeddedTutorialManager.type())),
25 ),
26 filter((tutorialType): tutorialType is TutorialMetadata['type'] => Boolean(tutorialType)),
27 ),
28 );
29}

Callers

nothing calls this directly

Calls 4

injectFunction · 0.90
toSignalFunction · 0.90
typeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…