How to get value of ng-change ionic/angular?
<p>I m new in angularJS:</p>

<p>When I change the value of my input, in my console I don t have the new value.
 How can I get the new value of my input when I change it?</p>

<p><strong>controller.js:</strong></p>

<pre><code>$scope.nam = guillaume;
$scope.firstchange = function(){
    $scope.displayed = {'display':'block'};
    console.log($scope.nam);

};
</code></pre>

<p><strong>home.html:</strong></p>

<pre><code>&lt;input ng-change="firstchange()" ng-model="nam" class="param-right"&gt;&lt;/input&gt;&lt;p&gt;Prénom&lt;/p&gt;
</code></pre>