Created
March 26, 2019 09:53
-
-
Save dancornilov/1f922b2415edfc5790f1a79f9006241c to your computer and use it in GitHub Desktop.
Validator v1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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