Get user input from textarea

后端 未结 6 1171
失恋的感觉
失恋的感觉 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:01

    Remove the spaces around your =:

    But you need to have the variable named str on back-end, than its should work fine.

提交回复
热议问题