Support for Vue 2
See original GitHub issueI’m using vue 2.0.0 rc4 with webpack. I tried the example in the README.MD but it failed, here is the output of the console
vue.js?3de6:2508[Vue warn]: failed to compile template:
<label v-bind:for.once="id" v-bind:class="{ "is-disabled": disabled, "is-checked": isChecked }" class="mdl-checkbox mdl-js-checkbox"><input v-bind:value="value" type="checkbox" v-bind:id.once="id" v-model="checked" v-bind:disabled="disabled" class="mdl-checkbox__input"/><span class="mdl-checkbox__label"><slot></slot></span></label>
- invalid expression: v-bind:class="{ "is-disabled": disabled, "is-checked": isChecked }"
(found in component <MdlCheckbox>)
What’s wrong with the quotes ?
Issue Analytics
- State:
- Created 7 years ago
- Comments:29 (12 by maintainers)
Top Results From Across the Web
Frequently Asked Questions - Vue.js
We are planning to provide extended support for Vue 2 for teams with such needs - if your team expects to be using...
Read more >Vue - endoflife.date
Vue is a JavaScript framework for building user interfaces. ... Release, Released, Active Support, Security Support, Latest ... 2, 6 years ago.
Read more >How long will Vue 2 be supported? : r/vuejs - Reddit
According to the roadmap, v2 will receive 1 more minor release (v2.7) which will then have 18 months of LTS. Security patches will...
Read more >Should I Use Vue 3 or Vue 2 In 2022? | by Mayank Chaudhari
In the end, I encourage any new project that doesn't need support for IE11 (also see joke above in point 1) and doesn't...
Read more >Add TypeScript Support to Vue 2 Project | Ji ZHANG's Blog
You should also be familiar with Vue, vue-loader, and webpack. Vue 2 already has good support for TypeScript, and the recently published Vue...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Glad to hear more people want it! You can expect a prerelease version on Monday The release will come once I make the project Vue 1 and 2 compatible. After that, I’ll start working on integrating mdl 2. This time for Vue 2 only
I added an alpha and published it under the
nextnpm tag I may have forgotten some breaking change details: https://github.com/posva/vue-mdl/releases/tag/v1.0.0-alpha.1This is not production ready
Feedback is welcome! Edit: some components may not be fully working yet I just realised there’s no way to make it backwards compatible to Vue 1 because templates are compiled in Vue 2. I’ll therefore keep v1 for Vue 2 mdl 1 and v0.x for Vue 1 mdl 1. I surely won’t add new features to the old vue-mdl if that’s the case but I’ll love some contributors to help