title: Angular: How to get an input value using $this
body: <p>I am hoping to get an input value inside a keyup function that can runs from multiple inputs. Every time there is a keyup the function will trigger according to the specific input. So, I am trying to use $this inside the function. No succes so far..
  HTML code:</p>
  
  <pre><code>&lt;input ng-keyup="getRxcui()" placeholder="Type med a" id="medicineA" /&gt;
  &lt;input ng-keyup="getRxcui()" placeholder="Type med b" id="medicineB" /&gt;
  </code></pre>
  
  <p>Angular code:</p>
  
  <pre><code>var rxConflicts = angular.module('rxConflicts', []);
  
  rxConflicts.controller('MainController', function($scope, $http){
      $scope.getRxcui = function(event){
  
          // getting the value for each medicine input
          var medValue = $(this).value;
          console.log(medValue);
  
      }
  });
  </code></pre>
  
  <p>I am pretty sure $(this) is the right way to do this so that I don't need to duplicate that function for each input and use ng-model... You can take my word that the angular works fine.
  Any help is appreciated. Thanks</p>