I have a directive <my-directive> that is an element. I do not use link or compile, just:
export default function myDirective() {
return {
restrict: 'E',
scope: true,
templateUrl: 'my-directive.html',
controller: mydirective,
controllerAs: 'mine',
bindToController: {}
}
}
This of course is a fake directive, but the issue I have is being able to add a css class on this directive when it is in the DOM.
if there is anymore information I need to add, please let me know.
<my-directive class="someClass"></my-directive>work?