title: Add method to Angular directive?
body: <p>I'm trying to create a directive that would enhance an HTML element. So I managed to get the directive to run and to be associated with the element My current code is something like this:</p>
  
  <pre><code>angular.module('myModule', [])
  
      .directive('myDirective', function() {
          return {
              restrict: 'C',
              replace: false,
              scope: {},
              link: function(scope, element, attrs) {
  
              }
          }
      });
  </code></pre>
  
  <p>Now I would like to add new methods to the HTML element, for example I would like to do this:</p>
  
  <pre><code>// Pseudo code
  myElement.reset();
  myElement.reload(); // etc.
  </code></pre>
  
  <p>What would be the best way to add these methods to the directive? </p>