I have text area box ,I need to check the data when we enter the text in the text area.I written change method but that is not working here is the code.
<textarea (change)="textAreaEmpty(textValue)" #textValue></textarea>
component
textAreaEmpty(text:string){
if(text.length > 0)
console.log(text);
}
I also need to check how many rows user entered in the text area.i dint find any solution in anuglar2 ,I am able to get the data with jquery or javascript,but i don't want to use that. i want to use it in angular 2,Can any body help me?