title: Executing a scope bound function with parameters
body: <p>If I have a function like this in a directive:</p>
  
  <pre><code> scope: {
        loadChildren: "&amp;"
   },
  </code></pre>
  
  <p>How can I call this from my controller and pass parameters?</p>
  
  <pre><code>$scope.loadChildren(param1, param2);
  </code></pre>
  
  <p>My directive executes the function I pass it but I don't see any parameters. </p>
  
  <p>Is there any way to pass them like this?</p>
  
  <p><strong>EDIT re: rodyhaddad's answer</strong></p>
  
  <p>rodyhaddad points the way and gives the correct format for passing parameters to a bound function. However, in order to get it working I also had to add the parameter keys into my HTML like this:</p>
  
  <pre><code>&lt;example load-children="load(param1, param2)"&gt;&lt;/example&gt;
  </code></pre>
  
  <p>Then on my controller I can see parameters:</p>
  
  <pre><code>$scope.load = function (param1, param2) {
      debugger;
  };
  </code></pre>