projects/angular-cli-widgets-components/src/lib/tek-form-input/tek-form-input.component.ts
import { Component, OnInit, Input } from '@angular/core';
import { TekLabelComponent } from '../tek-label/tek-label.component';
@Component({
selector: 'app-tek-form-input',
templateUrl: './tek-form-input.component.html',
styleUrls: ['./tek-form-input.component.scss']
})
export class TekFormInputComponent implements OnInit {
@Input()
type: string;
@Input()
label: string;
isFocused = false;
constructor() {
}
ngOnInit() {
}
onFocus() {
this.isFocused = true;
}
onBlur() {
this.isFocused = false;
}
}