question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Vue 2

See original GitHub issue

I’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="{ &quot;is-disabled&quot;: disabled, &quot;is-checked&quot;: 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="{ &quot;is-disabled&quot;: disabled, &quot;is-checked&quot;: isChecked }"

 (found in component <MdlCheckbox>)

What’s wrong with the quotes ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:29 (12 by maintainers)

github_iconTop GitHub Comments

9reactions
posvacommented, Nov 4, 2016

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

5reactions
posvacommented, Nov 8, 2016

I added an alpha and published it under the next npm tag I may have forgotten some breaking change details: https://github.com/posva/vue-mdl/releases/tag/v1.0.0-alpha.1

This 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found