angular/devtools/projects/ng-devtools/src/lib/devtools-tabs/tree-visualizer-host/tree-visualizer-host.component.ts
hawkgs 911a210ff0 refactor(devtools): introduce tree-visualizer-host (#59916)
The purpose of this component is purely to encapsulate and offload the styles from `devtools.component.scss` since it wasn't very clear what their scope is.

PR Close #59916
2025-02-26 12:18:06 -05:00

23 lines
620 B
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {Component, ElementRef, viewChild} from '@angular/core';
@Component({
selector: 'ng-tree-visualizer-host',
template: `
<svg #container>
<g #group></g>
</svg>
`,
styleUrl: 'tree-visualizer-host.component.scss',
})
export class TreeVisualizerHostComponent {
readonly container = viewChild.required<ElementRef>('container');
readonly group = viewChild.required<ElementRef>('group');
}