/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
devtools/projects/ng-devtools/src/lib/shared/icon/icon.component.ts
24 строки
581 B
hawkgs
refactor(devtools): change upstream and downstream signal deps icons
11 мар 2026, 19:25
11 мар 2026, 19:25
832d428
Код
Авторство
О чём код?
/** * @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, input} from '@angular/core'; export type IconName = 'graph_downstream' | 'graph_upstream'; @Component({ selector: 'ng-icon', template: ` <svg class="svg"> <use [attr.xlink:href]="'/assets/sprite.svg#' + name()"></use> </svg> `, styleUrl: './icon.component.scss', }) export class IconComponent { name = input.required<IconName>(); }