我正在使用vuejs。创建组件并将其捆绑在asp.net中
例如
bundles.Add(new ScriptBundle("~/bundles/mybundle")
.Include("~/Scripts/mycomponent.js");
我的组件如下:
Vue.component("acomponent", {
template: `<div>
<p>acomponent</p>
</div>`
});
但是当我查看捆绑商品的来源时,我看到了错误
运行时错误JS1014:无效字符:`
因此,绑定不喜欢`字符,但是我需要使用它来包装我的模板。 有办法解决吗?
Visual Studio 2019 v16.1.6