Files
mowesta/web-angular/src/app/widgets-common/email-field.component.ts
T
handte 5c9b16500b
LocationBasedServices/mowesta/master This commit looks good
Webapp design update, fix bug in measurement api.
2020-03-02 11:27:49 +01:00

29 lines
678 B
TypeScript

import { Component, Input } from '@angular/core';
import { FormErrorEncoder } from '../utils/formcodes';
import { ResourceService } from '../services/resource.service';
/**
* A validated field that enables a user to enter the
* email. The email will be available through the
* components name which also acts as an input.
*/
@Component({
selector: 'app-email-field',
templateUrl: './email-field.component.html'
})
export class EmailFieldComponent extends FormErrorEncoder {
/**
* The email address.
*/
@Input() email: string;
/**
* Disables the field.
*/
@Input() disabled: boolean;
constructor(public res: ResourceService) {
super();
}
}