UNPKG

govbr-ds-angular

Version:

Implementação em Angular do Design System GovBR.

15 lines (14 loc) 596 B
import { PipeTransform } from '@angular/core'; import { AbstractControl } from '@angular/forms'; import * as i0 from "@angular/core"; /** * Pipe HasErrorPipe é responsável por verificar se um campo possui erro. * @example * <div *ngIf="form.get('campo') | hasError : 'required'">Campo obrigatório</div> * @standalone */ export declare class HasErrorPipe implements PipeTransform { transform(value: AbstractControl, error?: string): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<HasErrorPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<HasErrorPipe, "hasError", true>; }