Vue.js 3 Cookbook – Discover Actionable Solutions for Building Modern Web Apps with the Latest Vue Features and TypeScript

Vue.js 3 Cookbook - Discover Actionable Solutions for Building Modern Web Apps with the Latest Vue Features and TypeScript

Vue is a minimal frontend framework that empowers developers to create web applications, prototypes, big enterprise applications, desktop applications, and mobile applications.

Vue 3 is a complete rewrite of Vue and brings changes to all the core APIs of the frameworks. This rewrite changes code that was written to flow in TypeScript. In Vue 3 we have all of the core APIs exposed, giving the possibility of using Vue to everyone.

The book starts with recipes for implementing Vue 3’s new features in your web development projects and migrating your existing Vue apps to the latest version. You will get up and running with TypeScript with Vue, and find succinct solutions to common challenges and pitfalls faced in implementing components, derivatives, and animation, through to building plugins, adding state management, routing, and developing complete single-page applications (SPAs).

Some of the libraries, plugins, and frameworks used in this book might receive updates between the writing of this book and the time that you’re reading it. So, please pay attention to any API changes or version changes that may have any breaking changes.

Who this book is for

This book is for web developers who wants to learn more about Vue and wants to improve their Vue skills. We’ll start by presenting the Vue 3 and TypeScript technologies. In the subsequent chapters, the reader will be presented with the new concepts in Vue and their ecosystem plugins, UI frameworks, and advanced recipes.

By following the book from cover to cover, you will be able to create a Vue application, use all the essential Vue plugins, and employ the top Vue UI frameworks. If you are already familiar with Vue, you will discover relevant new patterns.

What this book covers

Chapter 1, Understanding Vue 3 and Creating Components, provides the reader with recipes on how to use the new Vue 3 APIs to create custom Vue components using Vue’s exposed core API and the Composition API. This chapter also helps the reader along an initial upgrade path of a Vue 2 application to Vue 3.

Chapter 2, Introducing TypeScript and the Vue Ecosystem introduces the reader to the TypeScript superset and how to use it, starting with basic types, interfaces, and type annotations. The reader will become ready for the development of a Vue application with Vue CLI, TypeScript, and vue-class-component.

Chapter 3, Data Binding, Form Validations, Events, and Computed Properties, discusses the basic Vue developments and component concepts, including v-model, event listeners, computed properties, and for loops. The reader will be introduced to the Vuelidate plugin for form validation and how to use it on a Vue component, along with how to debug a Vue component with vue-devtools.

Chapter 4, Components, Mixins, and Functional Components, walks the reader through building components with different approaches, including custom slots for contents, validated props, functional components, and creating mixins for code reusability. It then introduces the reader to a set of different approaches for accessing child components’ data, creating a dependency injection component and dynamic injected component, and how to lazy load a component.

Chapter 5, Fetching Data from the Web via HTTP Requests, shows the reader how to create a custom wrapper around the Fetch API for HTTP calls on JavaScript, how to use the wrapper in Vue, and how to implement custom asynchronous functions on Vue. The reader will also learn how to replace the Fetch API in the wrapper for axios, and how custom handlers can be implemented on axios.

Chapter 6, Managing Routes with vue-router, takes a look at Vue’s routing plugin and how to use it on Vue to create routes for the pages of a Vue application. It introduces the process of managing router paths, dynamic paths with parameters on the router path, lazy loading the page component, creating middleware for authentication on the router, and using an alias and redirect.

Chapter 7, Managing the Application State with Vuex, explores the Vue state management plugin to help the reader understand how Vuex works and how it can be applied to their application. This chapter also provides the reader with recipes for creating Vuex modules, actions, mutations, and getters, and explores how to define the base state for the store.

Chapter 8, Animating Your Application with Transitions and CSS, explores the fundamentals of CSS animation and transitions by providing recipes for custom animations based only on CSS. These will be used with a Vue custom component to achieve a nice looking application and provide the best experience for the application’s users.

Chapter 9, Creating Beautiful Applications Using UI Frameworks, take a look at popular UI frameworks. The reader will build a user registration form with Buefy, Vuetify, and Ant- Design with their design concept. The aim of the recipes in this chapter is to teach the reader how to create a good-looking application with a UI framework.

Chapter 10, Deploying an Application to Cloud Platforms, shows how to deploy a Vue application on custom third-party hosters such as Vercel, Netlify, and Google Firebase. Using the recipes in this chapter, the reader will learn how to automatically deploy their application with integrated repository hooks and auto-deploy functions.

Chapter 11, Pro League – Directives, Plugins, SSR, and More, explores advanced topics on Vue, including patterns, best practices, how to create plugins and directives, and how to use high-level frameworks such as Quasar and Nuxt.js to create applications.

电子书说明:

  • 关于本书的内容介绍、目录、详情等请在 AmazonGoolge Books 等售书网站搜索查看,本站仅展示封面作为参考。
  • 如无特殊说明,本站提供的所有pdf均为文字版(aka True PDF or Digitally Created PDF)。
  • 本站已经列出的所有图书均可以找到。
  • 收到PDF链接之后建议尽快下载或者保存到自己的百度网盘,防止链接过期失效。

免费获取本书PDF

扫描下方二维码添加微信号 bookyage 回复本书编号 175918 即可,我们会尽快(一般24小时之内)将本书PDF文件以百度网盘链接的形式发送给您。

注意:每位用户只能免费获取1本书的pdf,超过1本之后需要以微信转账方式每本支付9.9元人民币代找费用才能继续收到相应的pdf。

如果看不到二维码,请按F5刷新本网页!或者直接添加微信号:bookyage