Marek,

Marek,

Marek,

Thanks for linking that information from the documentation. There are some interesting gotchas for change detection in Vue.

However, it doesn’t apply in this case. Take a look at the screen capture below. It’s recorded from the same pen I embedded in the post.

The computed property is the binary string. Whenever the user changes the string…

  1. the set function is called
  2. the string is looped over, changing the pets array along the way
  3. the checkboxes update with new pets data
  4. console.log() is executed

Hope this clarifies things a bit.

“Marek,” Posted first on ” Web Development on Medium “
Author: Travis Horn

Author: Pawan Kumar

Leave a Reply

Close Menu
%d bloggers like this:
Skip to toolbar