Vue: Ignore non-vue elements in template

Created on 18 Dec 2015  路  2Comments  路  Source: vuejs/vue

I'm working with with AFrame which used its own custom web component syntax. Vue is trying to parse, for example, <a-scene> as a component. Can non-Vue elements be ignored in Vue templates?

Most helpful comment

Yeah, you can just add v-pre to <a-scene>:

<a-scene v-pre>
  <!-- aframe stuff -->
</a-scene>

All 2 comments

There is v-pre, which lets you manually specify the element nodes to be ignored.

Yeah, you can just add v-pre to <a-scene>:

<a-scene v-pre>
  <!-- aframe stuff -->
</a-scene>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

julianxhokaxhiu picture julianxhokaxhiu  路  3Comments

6pm picture 6pm  路  3Comments

gkiely picture gkiely  路  3Comments

aviggngyv picture aviggngyv  路  3Comments

bfis picture bfis  路  3Comments