Hello.
I have written some custom plugins for Kibana. There are common directives I have been replicating in each plugin. For instance in order to add a common header for my plugin pages, I create and add a directive to each plugin as follows:
uiModules.get('app/my-plugin', []).directive('ngcustomheader',
function() {
return {
restrict: 'A',
template: headerTemplate
}});
Where headerTemplate is just an import as follows:
import headerTemplate from './templates/header.html';
I would like to be able to add this custom directive in such a way that is accessible from all my plugins.
Is this possible?. How can I accomplish this?.
Thanks.