title: Passing function to Angular directive with template parameter
body: <p>Hi I am having trouble using a parameter in my template for a function that I have passed into a directive with isolate scope. The directive uses the template in which I am calling the function but for some reason my parameter "meetpunt" is undefined:</p>
  
  <p>my template where meetpunt seems to be undefined when I debug the getCoordinaten function:</p>
  
  <pre><code> &lt;tr ng-repeat="meetpunt in meetpunten"&gt;
       &lt;td&gt;{{getCoordinaten(meetpunt)}}&lt;/td&gt;
   &lt;/tr&gt;
  </code></pre>
  
  <p>my directive: </p>
  
  <pre><code>angular.module('zendantennesApp').directive('meetpuntTabel', function() {
      return {
          restrict: 'E',
          templateUrl: 'views/components/meetpunt-tabel/meetpunt-tabel.html',
          scope: {
              single: '@',
              meetpunten: '=',
              getCoordinaten: '&amp;'
          },
          link: function(scope, element, attrs) {
          }
      }
  });
  </code></pre>
  
  <p>my controller:</p>
  
  <pre><code>'use strict';
  
  angular.module('zendantennesApp')
      .controller('MeetpuntTabelCtrl', function ($scope) {
  
  
          $scope.getCoordinaten = function (meetpunt) {
              return '(' + meetpunt.geometry.coordinates[0] + ', ' + meetpunt.geometry.coordinates[1] + ')';
          };
  
  
      });
  </code></pre>
  
  <p>this is how I am calling the directive:</p>
  
  <pre><code>&lt;section ng-controller='MeetpuntTabelCtrl'&gt;&lt;meetpunt-tabel meetpunten='meetpunten' get-coordinaten='getCoordinaten(meetpunt)' single='true'&gt;&lt;/meetpunt-tabel&gt;&lt;/section&gt;
  </code></pre>
  
  <p>any help would be appreciated. 
  kind regards</p>