Created
April 17, 2025 13:57
-
-
Save navin89/c91aae4980a2ba28c8b2d46a85f73664 to your computer and use it in GitHub Desktop.
test
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
import { ChangeDetectionStrategy, Component, OnInit, ViewEncapsulation } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; | |
@Component({ | |
selector: 'lib-therapienow-form', | |
imports: [CommonModule, ReactiveFormsModule], | |
templateUrl: './therapienow-form.component.html', | |
styleUrl: './therapienow-form.component.scss', | |
encapsulation: ViewEncapsulation.None, | |
changeDetection: ChangeDetectionStrategy.OnPush | |
}) | |
export class TherapienowFormComponent implements OnInit { | |
form= new FormGroup({ | |
firstname: new FormControl(''), | |
lastname: new FormControl(''), | |
email: new FormControl(''), | |
address: new FormGroup({ | |
fullAddress: new FormControl(''), | |
city: new FormControl(''), | |
postcode: new FormControl(0), | |
}), | |
}); | |
ngOnInit(): void { | |
//EMPTY | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment