title: call javascript function outside of scope on ng-click
body: <p>I have a javascript library with a bunch of useful functions that I make use of across my website that does various things.</p>
  
  <p>I know that I cannot access these functions from an ng-click, because the functions are outside of scope.</p>
  
  <p>Is there a way to access them without having to declare a scope function that just makes a call to the function in the library?</p>
  
  <p><a href="https://jsfiddle.net/aca320bt/">Here</a> is a jsfiddle with an example. I would like to know if there's a way to make the second link work.
  This is simply because I do not like the idea of defining a function that will simply call another function. e.g.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div ng-click="doSomething()"&gt;Click Me (Working)&lt;/div&gt;
  &lt;div ng-click="doSomethingElse()"&gt;Click Me (Not Working)&lt;/div&gt;
  </code></pre>
  
  <p>Controller JS:</p>
  
  <pre><code>$scope.doSomething = function () {
      doSomethingElse();
  };
  </code></pre>
  
  <p>External Library JS:</p>
  
  <pre><code>function doSomethingElse() {
      alert("SomethingElse");
  }
  </code></pre>
  
  <p><strong>&lt;-------UPDATE-------></strong></p>
  
  <p>Thanks for the creative responses guys!
  Vinay K's answer is the easiest and most obvious, but I decided to go with Ron E's answer.
  The reason is that I already have a global module with a collection of reusable directives and that would make it easier and cleaner to implement in my HTML. Also because I sometimes use more than one function from the library and then would have to chain them in the onclick:</p>
  
  <pre><code>onlick="func1(); func2(); func3();"
  </code></pre>
  
  <p>Where a directive is just cleaner and I can call as many functions as I like while doing other stuff as well.</p>