arranbartish/angular-cli-widgets

View on GitHub
projects/angular-cli-widgets-components/src/lib/tek-form-input/tek-form-input.component.ts

Summary

Maintainability
A
0 mins
Test Coverage
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;
  }
}