0
我讀了一些kibana 4.3的源代碼。我認爲'發現'控制器在'apps/discover'模塊中,'ui/routes'如何找到它?這似乎在'kibana'模塊中。謝謝!kibana ui模塊如何工作?
var app = require('ui/modules').get('apps/discover', [
'kibana/notify',
'kibana/courier',
'kibana/index_patterns'
]);
require('ui/routes')
.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) {
......