S
S
Sergey Khindrikson2021-03-23 15:16:46
Vue.js
Sergey Khindrikson, 2021-03-23 15:16:46

How to reactively update a global object?

There is a global object (initially empty):
Vue.prototype.$tabs = {}

There are 2 components in the application itself

<template>
  <div id="app">
    <side-features></side-features>
    <main-with-items></main-with-items>
  </div>
</template>


This global object is formed in the component (it displayed all the rules in console.log) And if this global object is displayed in the component , then it is still empty . The global object, maybe it still needs to be updated somehow? What am I doing wrong? <main-with-items></main-with-items>
<side-features></side-features>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question