title: AngularJS - Attribute directive input value change
body: <p>I've got an AngularJS attribute directive, and I would like to take an action any time its parent input's value changes. Right now I'm doing it with jQuery:</p>
  
  <pre><code>angular.module("myDirective", [])
  .directive("myDirective", function()
  {
      return {
          restrict: "A",
          scope:
          {
              myDirective: "=myDirective"
          },
          link: function(scope, element, attrs)
          {
              element.keypress(function()
              {
                  // do stuff
              });
          }
      };
  });
  </code></pre>
  
  <p>Is there a way to do this without jQuery? I'm finding the keyPress event isn't doing exactly what I want it to, and while I'm sure I'll come up with a solution, I get a little nervous when I resort to using jQuery in an Angular project.</p>
  
  <p>So what's the Angular way to do this?</p>