title: Controller Value is not showing in view Angularjs
body: <p>In the view <code>{{phonenumber}}</code> value is not updating. But When I enter digits alert is working properly inside the controller.</p>
  
  <blockquote>
    <p><strong>Controller</strong></p>
  </blockquote>
  
  <pre><code>var app = angular.module('myApp', []);
      app.controller('PosController', function ($scope, $http) {
          $scope.phonenumberFromDial = "";
          $scope.phonenumber = "";
          $scope.updatePhoneNumber = function(id) {
          $scope.phonenumberFromDial=id;
          $scope.phonenumber =$scope.phonenumber+$scope.phonenumberFromDial;
          if($scope.phonenumber.length &gt; 9) {
              console.log("Log phonenumber: " + $scope.phonenumberFromDial);
              alert('Here the Number: '+ $scope.phonenumber);
          } 
  });
  </code></pre>
  
  <blockquote>
    <p><strong>View</strong></p>
  </blockquote>
  
  <pre><code>&lt;div ng-app="myApp" ng-controller="PosController" class="panel" &gt;
      &lt;div class="input-group col-xs-4"&gt;  
          &lt;div class="input-group-btn"&gt;
              &lt;button type="button" class="btn btn-success" data-toggle="modal" data-target="#myModal"&gt;Telefono&lt;/button&gt;
          &lt;/div&gt;&lt;!-- /btn-group --&gt;        
  
          &lt;div ng-app="myApp" ng-controller="PosController"&gt;
              &lt;input  id="phonenumber" class="form-control" ng-model="phonenumber" /&gt;
              &lt;!--&lt;input type="text" id="phonenumber" ng-model="myModel" ng-keyup="(myModel.length &gt;= 3) &amp;&amp; myFunction()" class="form-control" data-inputmask='"mask": "(999) 999-9999"' data-mask&gt;--&gt;
          &lt;/div&gt;
  
          &lt;div class="input-group-btn" &gt;
              &lt;button type="button" class="btn btn-success"&gt;Cliente&lt;/button&gt;
          &lt;/div&gt;&lt;!-- /btn-group --&gt;
          &lt;div ng-app="myApp" ng-controller="PosController"&gt;\
              &lt;input type="text" id="cliente"  class="form-control"  value="{{phonenumber}}"&gt; 
          &lt;/div&gt;
      &lt;/div&gt; 
  &lt;/div&gt;
  </code></pre>