0

enter image description here

I'm trying out vuejs by following along with the laracasts series of webcasts on this. In https://laracasts.com/series/learning-vuejs/episodes/5 , Jeffery Way shows the code in the screenshot above.

That worked with vue < 1.0 , but there has been an api rewrite and this no longer works. I have looked at http://vuejs.org/api/ but have not been able to find a way to set a property inline although I know I could do this in the viewmodel.

How can I do this?

1
  • What are you exactly trying to do? just asign isVisible property to false? or hide something? Commented Jan 5, 2016 at 20:30

1 Answer 1

1

I believe you're looking for:

v-on:click="isVisible = false"

or the shorter:

@click="isVisible = false"

The documentation for it can be found here: http://vuejs.org/api/#v-on

If that's not what you're looking for please clear up your question.

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.