How to inject an external service and directive in Kibana Plugin?

Hello. We are developing a Kibana Plugin for Kibana 6.2.1. We would like to use https://github.com/danialfarid/ng-file-upload in our plugin.

How can we inject the services and directives of ng-file-upload in our plugin?.

Thanks.

Hi. I think I just answered myself. Sorry for this noob question.

In case somebody else ever get to this. The only steps needed are:

  1. yarn add ng-file-upload
    2.Add the import in app.js as "import ngFileUpload from 'ng-file-upload'"
    3.Add the Module dependency to your angular app as "uiModules.get('yourapp', ['ngFileUpload']).controller('uploaderController', function (Upload)"

Thanks for the follow-up.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.