Is the interpolation invalid after vue uses the template template output?

 <div id="app">
        {{message}}
        <template id="tmpl">
            

template

</template> </div> <script type="text/javascript"> var app = new Vue({ el: "-sharpapp", data: { message: "hello message" }, template: `-sharptmpl ` }) </script>

what is the reason why {{}} interpolation is not valid at this time?

Mar.21,2021

what you mean by this is that the contents of-sharptmpl are rendered under-sharpapp, and {{}} is naturally overwritten.

Menu