我试图使用通过车把VueJs条件呈现在vueJs 2.0按their documentation但eslint与和错误回来:VueJs条件车把
- avoid using JavaScript keyword as property name: "if" in expression {{#if ok}}
- avoid using JavaScript keyword as property name: "if" in expression {{/if}}
VueJs似乎并没有被渲染它。
<!-- Handlebars template -->
{{#if ok}}
<h1>Yes</h1>
{{/if}}
您试图使用的代码是一个句柄代码示例。再次阅读文档 – gtalarico