What’s the difference between the setup and date on Vue?

Asked

Viewed 20 times

0

I recently came across a new property setup and I’m not really understanding her difference to the traditional data :

setup () {
}

:

data () {
  return {
  }
}
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.