我試圖使用通過車把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