0

It seems like my vue.js code does not have any effect on my website. How do I fix this?

const selector = new Vue({
  el: '#hej',
  data: {
    question: 'How was your service?',
    selectorValue: '',
    buttonClicked = 'lorem ipsum'
  }
})
<div id="hej" class="section">
    <p class="question">{{ question }}</p>
</div>

1 Answer 1

1

buttonClicked = 'lorem ipsum' should be buttonClicked: 'lorem ipsum'

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.