title: AngularJS access scope from outside js function
body: <p>I'm trying to see if there's a simple way to access the internal scope of a controller through an external javascript function (completely irrelevant to the target controller)</p>
  
  <p>I've seen on a couple of other questions here that</p>
  
  <p><code>angular.element("#scope").scope();</code></p>
  
  <p>would retrieve the scope from a DOM element, but my attempts are currently yielding no proper results.</p>
  
  <p>Here's the jsfiddle: <a href="http://jsfiddle.net/sXkjc/5/">http://jsfiddle.net/sXkjc/5/</a></p>
  
  <p>I'm currently going through a transition from plain JS to Angular. The main reason I'm trying to achieve this is to keep my original library code intact as much as possible; saving the need for me to add each function to the controller.</p>
  
  <p>Any ideas on how I could go about achieving this? Comments on the above fiddle are also welcome.</p>