Inject ngSanatize in Kibana app

(Martijn Vaandering) #1

Hi to all the happy programmers out there,

i'm writing a plugin app for Kibana and all is functioning suberb!

But now i want to inject ngSanatize into the app but where to configure that...
Any help is very welcome!

Tnx in advance


How to inject new module into kibana application
(Tim Sullivan) #2

First, run npm install angular-sanitize to install the node package into your project and update the package.json.

Then you would inject 'ngSanitize' into your module. The place to inject dependencies is where uiModules.get() is called. If you are using the plugin generator, then that would be here:

The app.js in your project would look like:

// top of the file
import 'angular-sanitize';

// further down
.get('app/myplugin', ['ngSanitize'])

Note that I haven't tested this, but that should help get you started.

(Martijn Vaandering) #3

Thank you very much for your fast reaction Tim!

It looks like i need to setup a nice Linux machine 'cause yeoman on Windows is such a pain in the butt.


(system) #4