title: Href in angularjs
body: <p>I am very new to angular... I have some links of the variety <code>&lt;a href='/foo/bar'/&gt;</code> and I would like this to get routed to my rails controller as opposed to handled by angular.</p>
  
  <p>I saw two solutions posted on stack overflow: setting target="_self" and this</p>
  
  <pre><code>app.run(function($location, $rootElement) {
    $rootElement.off('click');
  });
  </code></pre>
  
  <p>The target attribute works OK but is not an ideal solution for me as I have some anchors generated by third-party gems. However, I am not able to get the second solution to work:</p>
  
  <p>Uncaught TypeError: Object [object Object] has no method 'off'</p>
  
  <p>I have tried to provide a JS fiddle here -- <a href="http://jsfiddle.net/HB7LU/100/" rel="nofollow">http://jsfiddle.net/HB7LU/100/</a>
  (the href itself is not a very good example as I don't have a rails controller). Could someone help me figure out how to fix/debug the rootElement issue?</p>