【发布时间】:2018-01-15 10:55:22
【问题描述】:
我正在尝试按照their documentation 使用 vueJs 2.0 中的把手使用 VueJs 条件渲染,但 eslint 又出现错误:
- 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}}
【问题讨论】:
标签: javascript vue.js eslint