Directive code
mymodule.directive(\'eicon\', function(){ return { restrict: \'E\', scope: { attr: \'=\' }, te
Since you are declaring isolated scope property attr you should be able to access scope.attr in template like this:
attr
scope.attr
mymodule.directive('eicon', function(){ return { restrict: 'E', scope: { attr: '=' }, template: "test {{attr.name}}" } });
Demo: http://plnkr.co/edit/YZ0aPqhkMlIIwmrkKK2v?p=preview