I’m having some problems updating a textarea from the controller.
In my view I have:
<label class="item item-input">
<textarea type="text" placeholder="Type your message" ng-model="message"></textarea>
</label>
Then in my controller I do:
$scope.sendMessage = function(msg) {
// code to send messages here works.
// I want the below to clear the textarea, but it doesn't
$scope.message = '';
}
Any ideas what I am doing wrong?
UPDATE: I should mention that I am calling this function from a button ng-click and the send message part is working.