TypeError: Cannot create property 'validator' on string 'abc@gmail.com' at setUpControl

后端 未结 3 1826
孤独总比滥情好
孤独总比滥情好 2021-02-12 01:41

I face issue in formGroup. First Based on URL I take some value and call to API for retrieve particular user-data for pre-field text.

register.html

3条回答
  •  时光取名叫无心
    2021-02-12 02:03

    I missed the square brackets in formGroup in markup as below

    and it throws similar error as

    ERROR TypeError: Cannot create property 'validator' on string 'form'

    Once the square brackets added in formGroup (see below), the error disappears

    ....

提交回复
热议问题