title: Access ng-model value
body: <pre><code>  &lt;div ng-controller="NotesController as noteCtrl"&gt;
  
  &lt;div class="form-group"&gt;
    &lt;input class="form-control" id="inputdefault" type="text" style="float: left;width: 90%;" ng-model="newNoteText" &gt;
    &lt;button class="btn btn-primary" ng-click='noteCtrl.addNewNote()' type="button" style="margin-left: 0.5%"&gt;&lt;span class="glyphicon glyphicon-plus"&gt;&lt;/span&gt;&amp;nbsp;ADD&lt;/button&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>============================================</p>
  
  <pre><code>    var app=angular.module('myApp',[]);
  app.controller("NotesController",function(){
    this.allNotes=notes;
    this.note={};
    this.addNewNote=function(){
      alert(newNoteText);
    };
  
  });
  </code></pre>
  
  <p>Please let me know how to access the input text box value in my controller?</p>