Can someone please help in giving some inputs on the same? Thanks! Sudhir
On Wed, Oct 3, 2018 at 11:04 PM Sudhir Reddy <[email protected]> wrote: > Hi All! > > I would like to recreate following scenario with FormArray. Can someone > help me with optimal approach? > > Scenario: > *Sunday: Id, starttime, endtime* > *Monday: Id, starttime, endtime* > *.* > *.* > *.* > *.* > *Saturday: Id, starttime, endtime* > > Tried with following code (Not optimal code though and its taking one > component, I want more than 3 components/values to hold in Sunday or any > day of the week) > > * this.myForm = this.formBuilder.group({* > * 'Sunday': this.formBuilder.array([new FormControl('', > [Validators.required])]),* > * 'Monday': this.formBuilder.array([new FormControl('', > [Validators.required])])* > * });* > > Any help in this regard is appreciated! > > Regards! > Sudhir > > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
