Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue not working with reactivity #790

Closed
degustadev opened this issue Mar 6, 2019 · 5 comments · Fixed by #1271
Closed

Vue not working with reactivity #790

degustadev opened this issue Mar 6, 2019 · 5 comments · Fixed by #1271
Assignees
Labels
bug confirmed as a bug vuejs related to Vue.js

Comments

@degustadev
Copy link

degustadev commented Mar 6, 2019

Hi!

I tried adding the following:

<div id="example-1">
  <button v-on:click="counter += 1">Add 1</button>
  <p>The button above has been clicked {{ counter }} times.</p>
</div>
new Vue({
  el: '#example-1',
  data: {
    counter: 0
  }
})

I added <script src="//unpkg.com/vue/dist/vue.min.js"></script> to index.html and executeScript: true.

But it doesn't work, documentation says Docsify supports Vue tho.

@degustadev degustadev changed the title Vue methods not working Vue not working properly Mar 6, 2019
@degustadev degustadev changed the title Vue not working properly Vue not working with reactivity Mar 6, 2019
@degustadev
Copy link
Author

Related to: #788

@timaschew timaschew added the vuejs related to Vue.js label Mar 6, 2019
@stale
Copy link

stale bot commented Feb 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 4, 2020
@stale stale bot closed this as completed Feb 11, 2020
@BillyLuo
Copy link

same question

@sy-records sy-records reopened this May 25, 2020
@stale stale bot removed the wontfix label May 25, 2020
@jpkraemer
Copy link

does not work for me either

jhildenbiddle added a commit that referenced this issue Jul 5, 2020
- Fix inability to instantiate reactive Vue components by 1) handling each child of #main instead of #main itself and 2)  skipping elements that are already Vue instances
- Retain previous behavior of processing basic Vue rendering without the need for a markdown <script> tag.
- Update documentation and add live Vue examples
- Update `index.html` files to include Vue.js and Vuep (CSS+JS)
@jhildenbiddle jhildenbiddle added the bug confirmed as a bug label Jul 5, 2020
@jhildenbiddle jhildenbiddle self-assigned this Oct 7, 2020
@jhildenbiddle jhildenbiddle linked a pull request Oct 8, 2020 that will close this issue
@jhildenbiddle
Copy link
Member

@degustadev --

Fixed in #1271. The example code you provided has been tested and works as-is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed as a bug vuejs related to Vue.js
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants