title: Disable a component in a specific case in Vue.js
body: <p>I looked for how to do it but I did not find an answer to my problem anywhere.</p>
  
  <p>Let me explain, I have my page in which I load a component I created 'date-picker'. I need it in most of the components I will load in the router-view. My problem is that I would, if possible, disable it when I load a specific component in the router-view.</p>
  
  <pre><code>&lt;main&gt;
    &lt;date-picker&gt;&lt;/date-picker&gt;
    &lt;router-view&gt;&lt;/router-view&gt;
  &lt;/main&gt; 
  </code></pre>
  
  <p>Is there a solution, other than nesting my 'date-picker' component in the components they use? I use Vuex if it helps.</p>
  
  <p>Thanks in advance.</p>