Get user input from textarea

后端 未结 6 1172
失恋的感觉
失恋的感觉 2020-12-24 10:48

I\'m new to angular2. I want to store user input from a text area in a variable in my component so I can apply some logic to this input. I tried ngModel but it

6条回答
  •  春和景丽
    2020-12-24 11:28

    Just in case, instead of [(ngModel)] you can use (input) (is fired when a user writes something in the input

提交回复
热议问题