title: How to get value of ng-Model into Controller angular js
body: <p>Please help me to check this part of code. </p>
  
  <pre><code>&lt;body ng-app = "myApp"&gt;
  &lt;h1&gt;FORM &lt;/h1&gt;
      &lt;div ng-controller="myController"&gt;
      &lt;p&gt;&lt;label&gt;Username : &lt;/label&gt;&lt;input type="text" ng-model="user.username" name="username" id="username" /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;label&gt;Email : &lt;/label&gt;&lt;input type="email" ng-model="user.email"/&gt;&lt;/p&gt;
      &lt;p&gt;&lt;label&gt;Verifikasi Email : &lt;/label&gt;&lt;input type="email" ng-model="user.verify_email"  /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;label&gt;Password : &lt;/label&gt;&lt;input type="password"  ng-model="user.password" id="password" /&gt;&lt;/p&gt;
      &lt;button type="button" ng-click = "add()"  &gt;Sig In&lt;/button&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>In my Javascript:</p>
  
  <pre><code>&lt;script&gt;
  var app = angular.module('myApp', []);
      app.controller("myController", function($scope){
  $scope.user = {};
  $scope.add = function(){
       $scope.data = [
                      { nama : $scope.user.username},
                      { email : $scope.user.email},
                      {password : $scope.user.password } ];
  console.log($scope.data);
      }               
   });
  </code></pre>
  
  <p>Thanks for you all. I already update my script. When I click the button, the console didn't print the data. Why? I think there is something wrong.</p>