Angular reactive form based on model with validation
问题 is there a way to create a reactive form basing on an existing data model with all the validation magic. In the example below author passes whole new object into a formbuilder but what I want to achieve is elegant way to tell formbuilder what field is required or needs some other validation. https://malcoded.com/posts/angular-fundamentals-reactive-forms export class PersonalData { email: string = ''; mobile: string = ''; country: string = ''; } ... createFormGroupWithBuilderAndModel