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

(Andrés González) #1

Hello. We are developing a Kibana Plugin for Kibana 6.2.1. We would like to use in our plugin.

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


(Andrés González) #2

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)"

(Tyler Smalley) #3

Thanks for the follow-up.

(system) #4

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