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
ngModel
Remove the spaces around your =:
=
But you need to have the variable named str on back-end, than its should work fine.
str