0
私はいくつかのキバナ4.3のソースコードを読んでいます。私はコントローラが 'apps/discover'モジュールにあり、どのように 'ui/routes'がそれを見つけるのかを '発見'すると思いますか? 「キバナ」モジュールのように見える。ありがとう!実際に木版モジュールはどのように機能しますか?
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) {
......