Ionic/Angular FormGroup intellisense


#1

Hi All,

Does anyone here know of a way to get any kind of useful typescript intellisense on FormGroup controls?

i.e.

form.controls.whateverPropertyYou'reLookingFor.value

I’m doing okay without but would love to have it if available. My forms are quite deep and complex and would be awesome to have this.

Thank you


#2

No one with any kind of answer!?!?!?


#3

Accessing controls directly via dot notation is a bad habit. If you try to do it in the template, it will break on you. get() is a better alternative.


#4

That’s not what I’m doing, but thanks anyway - your answer’s given me an idea.