-
Install all dependencies and the vuex dependency. Execute the program as it is and try to understand the full funcionality; and what are the purpouse of "inject" and "provide" properties. Also, how the custom events are used.
-
Fill the
src/store/index.js
with a global store to handle userlogin
state. Remove theauth.isUserLogged
property fromApp.vue
, use a store getter to check if you user is connected. -
Remove
inject
fromLoginForm.vue
. Writelogin
commit to setauth.isUserLogged
to true. -
Remove
inject
fromTheNavigation.vue
. Create a getter in store/index.js with the nameisUserLogged
to perform the same action. -
Remove
inject
fromTodoList.vue
. Use a getter fortodo
andisUserLogged
. Write a commit to perform theremove todo
functionality. -
Remove
inject
fromAddTodo.vue
. Use the getterisUserLogged
. Write a commit to perform theadd todo
functionality.
npm install
npm run serve
npm run build
npm run lint