Angular 2 - formControlName inside component

后端 未结 7 1541
闹比i
闹比i 2020-11-30 00:21

I want to create a custom input component that I can use with the FormBuilder API. How do I add formControlName inside a component?

Template:

7条回答
  •  半阙折子戏
    2020-11-30 00:55

    You can get the input value by using the ion-input-auto-complete component, as per your code use below code

提交回复
热议问题