/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
adev/src/app/editor/preview/preview-error.component.ts
27 строк
803 B
Matthieu Riegler
docs(docs-infra): remove explicit OnPush
25 мар 2026, 22:58
25 мар 2026, 22:58
1938054
Код
Авторство
О чём код?
/*! * @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, inject} from '@angular/core'; import {isFirefox, isIos} from '@angular/docs'; import {ErrorType, NodeRuntimeState} from '../node-runtime-state.service'; @Component({ selector: 'docs-tutorial-preview-error', templateUrl: './preview-error.component.html', styleUrls: ['./preview-error.component.scss'], }) export class PreviewError { private readonly nodeRuntimeState = inject(NodeRuntimeState); protected readonly isIos = isIos; readonly isFirefox = isFirefox; protected readonly error = this.nodeRuntimeState.error; protected readonly ErrorType = ErrorType; }