# Use of App.js in Kibana Plugin

**URL:** <https://discuss.elastic.co/t/use-of-app-js-in-kibana-plugin/49537>\
**Category:** Kibana\
**Created:** [May 9, 2016, 10:37am UTC](https://discuss.elastic.co/t/use-of-app-js-in-kibana-plugin/49537 "2016-05-09T10:37:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veer\_Shubhranshu\_Shr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/veer_shubhranshu_shr/32/9530_2.png) [@Veer\_Shubhranshu\_Shr](https://discuss.elastic.co/u/Veer_Shubhranshu_Shr)\
**Post date:** [May 9, 2016, 10:37am UTC](https://discuss.elastic.co/t/use-of-app-js-in-kibana-plugin/49537/1 "2016-05-09T10:37:44Z")

</div>

I have recently started with developing Visualization plugin for Kibana 4.x.

I understood couple of things from the Kibana Plugin Development Tutorial. I understand that the fist JS to be called will be `index.js`, and then it creates a connection to other JS files defined in `uiExports.visTypes`.

However, I am still unclear, how is `app.js` called? Or how does Kibana includes `app.js` file?

I am referring the basic [clock plugin](https://github.com/timroes/tr-k4p-clock) . Any idea on the same?

Thanks.

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [May 9, 2016, 8:55pm UTC](https://discuss.elastic.co/t/use-of-app-js-in-kibana-plugin/49537/2 "2016-05-09T20:55:11Z")

</div>

In that example, do you mean `clock.js`?

The visualization is registered in `index.js`: [https://github.com/timroes/tr-k4p-clock/blob/master/index.js#L9](https://github.com/timroes/tr-k4p-clock/blob/master/index.js#L9) which references `public/clock.js`

---

<div class="post-metadata">

**Author:** ![Veer\_Shubhranshu\_Shr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/veer_shubhranshu_shr/32/9530_2.png) [@Veer\_Shubhranshu\_Shr](https://discuss.elastic.co/u/Veer_Shubhranshu_Shr)\
**Post date:** [May 10, 2016, 2:43am UTC](https://discuss.elastic.co/t/use-of-app-js-in-kibana-plugin/49537/3 "2016-05-10T02:43:02Z")

</div>

Hi Tyler,

Thanks! However, I am still unclear with how to use `app.js`? And what is the signicance of `app.js` in this example? How and when is `app.js` called?

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [May 10, 2016, 5:18am UTC](https://discuss.elastic.co/t/use-of-app-js-in-kibana-plugin/49537/4 "2016-05-10T05:18:39Z")

</div>

Where are you seeing a reference to `app.js`?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:53pm UTC](https://discuss.elastic.co/t/use-of-app-js-in-kibana-plugin/49537/5 "2017-07-06T13:53:54Z")

</div>

Closed on July 6, 2017, 1:53pm UTC


