title: How to pass parameters from directive to controller?
body: <p>I'm trying to pass from directive to controller a function with 1 param but it alerts undefined.</p>
  
  <pre><code>myApp.controller('MyController', function($scope, $window) {
  
      $scope.blabla = function(msg) { alert(msg) };
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/72G3D/" rel="nofollow">http://jsfiddle.net/72G3D/</a></p>
  
  <p>Lol :).Thanks</p>