Created
July 28, 2019 07:12
-
-
Save timdeschryver/e092aaac58010493c7008fd7485cd4a1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @Directive({ | |
| selector: 'person[stage-two]', | |
| }) | |
| export class StageTwoDirective { | |
| constructor(host: PersonComponent) { | |
| host.form.get('contactInfo').setValidators([Validators.required]) | |
| host.form.get('allergies').setValidators([Validators.required]) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment