mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
23 lines
620 B
TypeScript
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');
|
|
}
|