title: How do I get the value of an input element using angular.element('#id')
body: <p>When I'm trying to get the value of input element using angular.element, its returning undefined.
  Here is my code:
  </p>
  
  <pre><code>$scope.registerUser = function() {
      console.log(angular.element('#username').value); // undefined
      console.log(document.getElementById('username').value); // sampleName
  };
  </code></pre>
  
  <p>How do I get the value using angular.element</p>