Directive usage
<my-directive my-attr='StackOverflow'></my-directive>
Directive definiton
app.directive('myDirective', function($scope){
return {
restrict: 'E',
template: 'I want to print the attribute value',
controller: function($scope){
// I also want to access the attribute value here.
}
};
});
Is there a way to achieve this.