ipsos-components
Version:
Material Design components for Angular
27 lines (21 loc) • 576 B
text/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.io/license
*/
import {Directive, Input} from '@angular/core';
let nextUniqueId = 0;
/** Single error message to be shown underneath the form field. */
({
selector: 'mat-error',
host: {
'class': 'mat-error',
'role': 'alert',
'[attr.id]': 'id',
}
})
export class MatError {
() id: string = `mat-error-${nextUniqueId++}`;
}