All files / app/codeCharta/ui/ribbonBar/searchPanel/mapTreeView mapTreeView.component.ts

100% Statements 8/8
100% Branches 0/0
100% Functions 1/1
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 233x 3x       3x 3x 3x               3x       8x      
import { Component } from "@angular/core"
import { Store } from "@ngrx/store"
import { Observable } from "rxjs"
 
import { CcState, CodeMapNode } from "../../../../codeCharta.model"
import { mapTreeViewNodeSelector } from "./mapTreeViewNodeSelector/mapTreeViewNode.selector"
import { MapTreeViewLevelComponent } from "./mapTreeViewLevel/mapTreeViewLevel.component"
import { AsyncPipe } from "@angular/common"
 
@Component({
    selector: "cc-map-tree-view",
    templateUrl: "./mapTreeView.component.html",
    standalone: true,
    imports: [MapTreeViewLevelComponent, AsyncPipe]
})
export class MapTreeViewComponent {
    mapTreeViewNode$: Observable<CodeMapNode>
 
    constructor(store: Store<CcState>) {
        this.mapTreeViewNode$ = store.select(mapTreeViewNodeSelector)
    }
}