CodePen

HTML

            
              <section ng-app="app" ng-controller="MainCtrl">
  <my-directive call="jump()"></my-directive>
</section>
            
          
!
via HTML Inspector

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              var app = angular.module('app', []);

app.controller('MainCtrl', function($scope) {
  $scope.jump = function() {
    alert('jump called');
  };
});

app.directive('myDirective', function() {
  return {
    restrict: 'E',
    scope: {
      call: '&'
    },
    link: function postLink(scope, element, attrs) {
      scope.call();
    }
  };
});
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................