In this chapter, we created a fairly big application with the help of Vue and the official vue-router
library. We created a few routes and connected them with links that turned into a real navigation menu. Then, we created a generic and reusable component to build the application forms, which helped us make the login and signup forms. We then integrated the user authentication system with the router, so our application could react in smart ways to page refreshes or session expirations. Finally, we went deeper into the features and capabilities of vue-router
to enhance our application and user experience even further.
We are done with the app, but feel free to improve it on your own! Here are some ideas you could implement:
- Add comments to the tickets. Display the list of comments with the name of the corresponding user.
- Add close this ticket button, preventing users from adding new comments.
- Display a special icon next to a closed ticket in the tickets list!
- Add roles to users. For example...