no0x9d / ngx-strongly-typed-forms

Strongly typed definitions for Anglulars `@angular/forms`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doubt (and also a problem?)

lppedd opened this issue · comments

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).

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