title: call a parameterized function binded with a angular directive
body: <p>I  created a angular directive for calling a method in my parent controller which accepts a parameter(true/false)
  In my parent controller there a method</p>
  
  <pre><code>   app.controller('MyCtrl', function($scope){ 
  
       $scope.myMethod = function(val) {
         alert(val)
  
       };
  });
  </code></pre>
  
  <p>in my directive </p>
  
  <pre><code>app.directive('confirmBox',function() {
      return {
          restrict: 'E',
          template: '&lt;div&gt;' +
  
              '&lt;button ng-click="controlfunc(true)"&gt;Yes&lt;/button&gt;' + 
              '&lt;button ng-click="controlfunc(false)"&gt;No&lt;/button&gt;' + 
           '&lt;/div&gt;',
          scope: {
  
              controlfunc: '&amp;funcattribute',
  
          },
          controller: function($scope) {                  
          }
      };
  });
  </code></pre>
  
  <p>and the html code is</p>
  
  <pre><code> &lt;confirm-box  funcattribute="myMethod()" &gt;&lt;/confirm-box&gt;
  </code></pre>
  
  <p>When I click on the button Im getting 'undefined'</p>
  
  <p><a href="http://plnkr.co/edit/jlgI1XzOyKJMJ0Gsd9tG?p=preview" rel="nofollow">PLUNKR</a></p>