# Looking for kibana 6 config.js equivalent in 7.8

**URL:** <https://discuss.elastic.co/t/looking-for-kibana-6-config-js-equivalent-in-7-8/239069>\
**Category:** Kibana\
**Created:** [June 29, 2020, 8:08am UTC](https://discuss.elastic.co/t/looking-for-kibana-6-config-js-equivalent-in-7-8/239069 "2020-06-29T08:08:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcoRocco](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcorocco/32/71283_2.png) [@MarcoRocco](https://discuss.elastic.co/u/MarcoRocco)\
**Post date:** [June 29, 2020, 8:08am UTC](https://discuss.elastic.co/t/looking-for-kibana-6-config-js-equivalent-in-7-8/239069/1 "2020-06-29T08:08:00Z")

</div>

Hey guys, I've been looking through the kibana 7.8 codebase for a place to store some variables that would be widely available one instantiated. In my previous custom kibana 6 version, I've used the config object to store some variables which I could then easily use in different other places in the codebase by injecting it. I'm looking for something similar in the current latest version and I'm having a hard time grasping how it's organized, any tips/pointers would be greatly appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [June 29, 2020, 8:12am UTC](https://discuss.elastic.co/t/looking-for-kibana-6-config-js-equivalent-in-7-8/239069/2 "2020-06-29T08:12:47Z")

</div>

Hey @MarcoRocco,

I'm not sure I'm completely following you, would you mind pointing me to the "config.js" code in Kibana 6 that you were relying on?

Kibana 7.8 is based on quite flexible platform now (Kibana Platform) and I'm pretty sure we can find something there that would suit your needs.

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![MarcoRocco](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcorocco/32/71283_2.png) [@MarcoRocco](https://discuss.elastic.co/u/MarcoRocco)\
**Post date:** [June 29, 2020, 8:31am UTC](https://discuss.elastic.co/t/looking-for-kibana-6-config-js-equivalent-in-7-8/239069/3 "2020-06-29T08:31:27Z")

</div>

So, in kibana 6.2 I modified `/src/ui/public/config/config.js` to contains a couple more fields other than the default ones then I would simply inject this config into relevant files such as `dashboard_app.js` like so:

```auto

const app = uiModules.get('app/dashboard', [
  //...
  'kibana/config',
  //...
]);

app.directive('dashboardApp', function ($injector) {
  //...
  const config = $injector.get('config');
  //...

config.getSomeProperty();

```

I'm looking for a way to this in 7.8, essentially and object that's instantiated on session load and easily importable by components such as dashboard, visualization, search, etc.

---

<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 27, 2020, 8:31am UTC](https://discuss.elastic.co/t/looking-for-kibana-6-config-js-equivalent-in-7-8/239069/4 "2020-07-27T08:31:36Z")

</div>

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