Changing value of input's model programmatically using angular
<p>I'm using Ionic framework to create my app.</p>

<p>I have a text input, with <code>ng-model="answer"</code>, and bellow a have a button that starts speech recognition and then replaces the input text with the spoken one.</p>

<p>The problem is that I can't change the input's text programmatically when using the mic with <code>$scope.answer="any text"</code>, it looks like it just doesn't change the view's value.</p>

<p>I found that I have to use a directive in order to bind the model, but to be honest I don't know how to address it right now.<br>
Also I've tried <code>$scope.$apply()</code> but it works only the first time and when I haven't wrote any test directly to the input yet.</p>