Open dharmatv opened 5 years ago
You need to provide Vuep a scope
for it to pick up components.
<script>
import Vuep from "vuep";
import { Gravatar } from "path/to/component";
export default {
name: "LiveEditor",
components: {
Vuep
},
props: ["template"],
data() {
return {
scope: { Gravatar },
source: "..."
};
}
};
</script>
<template>
<vuep :template="source" :scope="scope" />
</template>
ERROR
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
found in
--->