1 Answer

0 votes
by

Arrow functions don’t define a ‘this’ context of their own and are instead bound to their parent function’s context. When you use an arrow function ( => ) in a Vue app, the ‘this’ keyword won’t be bound to the Vue instance and hence will throw errors. Therefore, it is strongly advised to use the standard function declaration instead.

Related questions

0 votes
asked Oct 7, 2019 in VueJS by Tate
0 votes
asked Oct 9, 2019 in VueJS by Indian
...