Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Landing page showing as Anonymous Component #9

Closed
artokun opened this issue Jul 2, 2016 · 1 comment
Closed

Landing page showing as Anonymous Component #9

artokun opened this issue Jul 2, 2016 · 1 comment

Comments

@artokun
Copy link

artokun commented Jul 2, 2016

Quick fix for this:

In app/src/routes.js

import Vue from 'vue'

export default {
  '/': {
    component: Vue.component('landing-page', require('./components/LandingPageView'))
  }
}

Then just add name to your component like so:

In app/src/components/LandingPageView.vue

...
export default {
    components: {
      CurrentPage,
      Links,
      Versions
    },
    name: 'landing-page'
  }
...
SimulatedGREG pushed a commit that referenced this issue Aug 8, 2017
Translate global_configuration.md
@thisisforeagle
Copy link

Found this page from a google search.
This has been bugging me for longer than I'd care to admit!!

Thanks @artokun

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants