How kibana ui modules work?


Hi, I read some kibana 4.3 source code. I think 'discover' controller is in 'apps/discover' module, how 'ui/routes' find it? which seems in 'kibana' module. thanks!

var app = require('ui/modules').get('apps/discover', [

  .when('/discover/:id?', {
    template: require('plugins/kibana/discover/index.html'),

app.controller('discover', function ($scope, config, courier, $route, $window, Notifier,
AppState, timefilter, Promise, Private, kbnUrl, highlightTags) {

(Felix Stürmer) #2

Hi @zhengjie,

I am not sure I understand your question correctly. If you are looking to get into writing your own Kibana plugin, I would recommend to take a look at this introductory talk.


Think you, but I know how to write simple Kibana plugin.
I thought for a day, and I find it now.:sweat:

turned out that it's about Angular :joy: , application level module 'kibana' depends on the 'apps/discover' modules, so it can be found.

(system) #4

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