/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
devtools/src/app/devtools-app/devtools-app.component.ts
25 строк
967 B
hawkgs
refactor(devtools): make devtools resizing in the demo app easier (#64307)
09 окт 2025, 15:21
09 окт 2025, 15:21
5da7845
Код
Авторство
О чём код?
/** * @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, signal, viewChild} from '@angular/core'; import {IFrameMessageBus} from '../../iframe-message-bus'; import {DevToolsComponent} from '../../../projects/ng-devtools'; import {SplitAreaDirective} from '../../../projects/ng-devtools/src/lib/shared/split/splitArea.directive'; import {SplitComponent} from '../../../projects/ng-devtools/src/lib/shared/split/split.component'; @Component({ templateUrl: './devtools-app.component.html', styleUrls: ['./devtools-app.component.scss'], imports: [DevToolsComponent, SplitAreaDirective, SplitComponent], }) export class AppDevToolsComponent { messageBus: IFrameMessageBus | null = null; readonly iframe = viewChild<ElementRef>('ref'); readonly resizingDevtools = signal(false); }