[Vuejs]-How to append nuxt element with js

0👍

You cannot add references to Vue components by using "vanilla JavaScript" or JQuery operations (unless you use Vue via tag, which isn’t possible via Nuxt).

Instead, this should be part of you Vue component’s template. You can then load the component conditionally via directives as @kissu described in his comment.

Leave a comment