title: ng-model value not updating in controller: Angular js
body: <p>I used this technique in another place and it worked but in this case it is not working. Here lane_title shows undefined. Am I missing something here.</p>
  
  <pre><code>&lt;input type="text" ng-model="lane_title" placeholder="Title of the lane" &gt;
  &lt;button ng-click="testScope()"&gt;Create&lt;/button&gt;
  </code></pre>
  
  <p>In controller:</p>
  
  <pre><code>$scope.testScope = function(){
      alert($scope.lane_title);
  }
  </code></pre>