This is my code
HTML:
<div class="someClass">
<label>Enter Text Here:</label>
<textarea id="content-editable" ng-model="myTextArea" ng-keyup="callme($event)">
</textarea>
</div>
JS:
var text = $scope.myTextArea.text
I am getting an exception in JS that "cannot find property text of undefined".
I am not sure if text property is needed to get the text from textarea but I am getting undefined in debugger for $scope.myTextArea
Whats wrong?
$scope.myTextArea = { text : 'abc' }in your controller somewhere ?