Change radioName
mode from @
to =
and set template empty:
template: '<label data-radio-name=""></label>'
Something like:
.directive('radio', function () {
return {
restrict: 'E',
replace: true,
transclude: true,
scope: {
radioName: '='
},
template: '<label data-radio-name=""></label>',
link: function ( ) {}
}
});
Output:
<label data-radio-name="login"></label>
Demo Fiddle