You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mohemm_srca/Mohem/src/app/hmg-common/ui/email/email.component.ts

26 lines
626 B
TypeScript

import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { CommonService } from '../../services/common/common.service';
import { EmailInput } from './models/email-input';
@Component({
selector: 'app-email',
templateUrl: './email.component.html',
styleUrls: ['./email.component.scss']
})
export class EmailComponent implements OnInit {
@Input() value: EmailInput;
@Output() emailEntered = new EventEmitter();
constructor(
public cs: CommonService
) { }
ngOnInit() {
}
public triggerValue() {
this.emailEntered.emit(this.value);
}
}