no0x9d / ngx-strongly-typed-forms

Strongly typed definitions for Anglulars `@angular/forms`
MIT License
59 stars 11 forks source link

Doubt (and also a problem?) #9

Closed lppedd closed 5 years ago

lppedd commented 5 years ago

Hi! How would you code a FormGroup against this interface?

export interface CronForm {
    seconds: {
        choice: string
        every: number
        startingFrom: number
        specific: List<number>
        everyBetweenFrom: number
        everyBetweenTo: number
    }
}

I've tried with

this.formBuilder.group<CronForm>({
    seconds: this.formBuilder.group({

    })
})

With no luck (compilation error).

lppedd commented 5 years ago

Nevermind, I was doing something wrong! I'll close this for now.