[Vuejs]-Custom Component in Vue 2

4👍

I see 1-2 problems here.

  1. You registered GISView to App.vue locally, meaning you can only use <gisview> inside App.vue‘s template. You can register GISView globally, like so, but i doubt you would want that.

Vue.component(GISView)

  1. Is your second code example supposed to be GISView.vue? If it is, you’re trying to use <gisview> within itself. Recursive components are a thing, but i don’t think that’s what you’re going for here.

Leave a comment