This is a snippet of your directory code:
return {
restrict: 'E',
scope: {
data: "="
},
link: function(scope, element, attrs) {
console.log(data);
, , - undefined data. scope.data. , :
link: function(scope, element, attrs) {
console.log(scope.data);
plunker