【发布时间】:2016-12-14 16:07:21
【问题描述】:
我阅读了一些 kibana 4.3 源代码。我认为“发现”控制器在“应用程序/发现”模块中,“用户界面/路由”如何找到它?这似乎在“kibana”模块中。谢谢!
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) {
......
【问题讨论】: