title: How to call a controller function from angular directive
body: <p>I want to call controller function from directive. Here is the <a href="http://jsfiddle.net/graphicsxp/Z5MBf/7/" rel="nofollow noreferrer">fiddle.</a> I have a sayHello() function in controller. And I want to call that function from angular directive. If i wall like scope.sayHello(); </p>
  
  <pre><code>scope.sayHello is not a function
  </code></pre>
  
  <p>I am getting like the above in console.</p>