when using scoped components, I follow the tutorial to do an example, but I can"t display the components and the content passed. I don"t know why? The
code is as follows:
<div id="G14">
<n-component slot-scope="props">
{{ props.text }}
</n-component>
</div>
<script>
Vue.component("n-component",{
template:"<div><slot text=""></slot></div>"
})
new Vue({
el:"-sharpG14"
})
</script>
looks like
in the browserThe
console did not report an error either. What is the problem?