Skip to content

Instantly share code, notes, and snippets.

@dancornilov
Created March 26, 2019 09:53
Show Gist options
  • Save dancornilov/1f922b2415edfc5790f1a79f9006241c to your computer and use it in GitHub Desktop.
Save dancornilov/1f922b2415edfc5790f1a79f9006241c to your computer and use it in GitHub Desktop.
Validator v1
import { Component, Input, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
@Component({
selector: 'app-validator',
templateUrl: './validator.component.html',
styleUrls: ['./validator.component.scss']
})
export class ValidatorComponent implements OnInit {
@Input() public control: FormControl;
public name: string;
constructor() {
}
public ngOnInit(): void {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment