Skip to content

Conversation

@YannickManfroy
Copy link

No description provided.

export class SockComponent {
sock$!: Observable<Sock>;
reviewForm: FormGroup;
formError: boolean = false;
Copy link
Member

@Laoujin Laoujin May 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je hebt ook een: this.reviewForm.valid

this.reviewForm = new FormGroup({
'review': new FormControl(null, Validators.required),
'rating': new FormControl('1')
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tegenwoordig kan je dit ook allemaal strongly typed maken (wat vb handig is bij .valueChanges etc

rating: new FormControl<number>(1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants