title: How to get text box value from view (ng-modal) to controller in angular js without using getElementById
body: <p>My view page :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> $scope.profileupdate = function(profiledata) {
                   var spinner = new Spinner(opts).spin(target);
                    
                   console.log("Firstname " + $scope.firstName + "Lastname " + $scope.lastName );
                   spinner.stop(); </code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  
  &lt;form id="profileform" class="form-horizontal" role="form"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label for="firstName" class="control-label col-md-2 col-md-offset-1"&gt;First Name&lt;/label&gt;
                          &lt;div class="col-md-6"&gt;
                              &lt;input type="text" class="form-control" ng-modal="profile.firstName"  name="firstName" id="firstName" placeholder="First Name"&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label for="lastName" class="control-label col-md-2 col-md-offset-1"&gt;Last Name&lt;/label&gt;
                          &lt;div class="col-md-6"&gt;
                              &lt;input type="text" class="form-control" ng-modal="profile.lastName" id="lastName" name="lastName" placeholder="Last Name"&gt;
                                  &lt;/div&gt;
                      &lt;/div&gt;
                     
                      
                      &lt;div class="form-group"&gt;
                          &lt;!-- Button --&gt;
                          &lt;div class="col-md-12"&gt;
                              &lt;input id="btn-signup" type="button" ng-click="profileupdate(profile)" class="btn btn-primary" /&gt;
                              &lt;/div&gt;
                      &lt;/div&gt;
                    &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I need to get the text box value from view to controller. Bet i cant get value in the controller. is there any other better way to get the data using angular JS.</p>