Skip to content

Instantly share code, notes, and snippets.

@navin89
Created April 17, 2025 13:57
Show Gist options
  • Save navin89/c91aae4980a2ba28c8b2d46a85f73664 to your computer and use it in GitHub Desktop.
Save navin89/c91aae4980a2ba28c8b2d46a85f73664 to your computer and use it in GitHub Desktop.
test
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