()
| 101 | readonly answerRevealed = signal<boolean>(false); |
| 102 | |
| 103 | constructor() { |
| 104 | this.route.data |
| 105 | .pipe( |
| 106 | filter(() => |
| 107 | Boolean(this.route?.routeConfig?.path?.startsWith(`${PAGE_PREFIX.TUTORIALS}/`)), |
| 108 | ), |
| 109 | takeUntilDestroyed(), |
| 110 | ) |
| 111 | .subscribe((data) => { |
| 112 | const docContent = (data['docContent'] as DocContent | undefined)?.contents ?? null; |
| 113 | this.documentContent.set(docContent); |
| 114 | this.setTutorialData(data as TutorialNavigationItem); |
| 115 | }); |
| 116 | |
| 117 | const destroyRef = inject(DestroyRef); |
| 118 | afterNextRender(() => { |
| 119 | this.splitResizerHandler.init( |
| 120 | this.elementRef, |
| 121 | this.content()!, |
| 122 | this.resizer(), |
| 123 | this.editor(), |
| 124 | ); |
| 125 | |
| 126 | from(this.loadEmbeddedEditorComponent()) |
| 127 | .pipe(takeUntilDestroyed(destroyRef)) |
| 128 | .subscribe((editorComponent) => { |
| 129 | this.embeddedEditorComponent.set(editorComponent); |
| 130 | }); |
| 131 | }); |
| 132 | } |
| 133 | |
| 134 | toggleNavigationDropdown($event: MouseEvent): void { |
| 135 | // Stop propagation required to avoid detecting click inside ClickOutside |
nothing calls this directly
no test coverage detected