Book description
Get a brisk introduction to building fast, interactive single-page web applications with Vue.js, the popular JavaScript framework that organizes and simplifies web development. With this practical guide, you’ll quickly move from basics to custom components and advanced features—including JSX, the JavaScript syntax extension.
Author Callum Macrae shows you how to use the most useful libraries in the Vue ecosystem, such as vue-router for routing, vuex for state management, and vue-test-utils for testing. If you’re a frontend developer familiar with JavaScript, HTML, and CSS, this book will show you how to develop a fully featured web application using Vue.
- Learn Vue.js basics, including its use of templates to display data on a page
- Set up Vue projects from scratch, or use vue-cli to set up from a template
- Create a maintainable codebase by splitting code into self-contained components
- Discover how Vue.js works with CSS to style your websites and applications
- Use render functions and JSX, rather than templates, to determine what Vue displays
- Control how code is executed and displayed with vue-router
- Manage state in one centralized place with the Vuex library
- Write unit tests to ensure your Vue components don’t break in the future
Publisher resources
Table of contents
- Preface
-
1. Vue.js: The Basics
- Why Vue.js?
- Installation and Setup
- Templates, Data, and Directives
- v-if Versus v-show
- Looping in Templates
- Binding Arguments
- Reactivity
- Two-Way Data Binding
- Setting HTML Dynamically
- Methods
- Computed Properties
- Watchers
- Filters
- Accessing Elements Directly Using ref
- Inputs and Events
- Life-Cycle Hooks
- Custom Directives
- Transitions and Animations
- Summary
- 2. Components in Vue.js
- 3. Styling with Vue
- 4. Render Functions and JSX
- 5. Client-Side Routing with vue-router
- 6. State Management with Vuex
- 7. Testing Vue Components
- A. Bootstrapping Vue
- B. Vue from React
- Index
Product information
- Title: Vue.js: Up and Running
- Author(s):
- Release date: March 2018
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491997246
You might also like
book
Web Development with Node and Express, 2nd Edition
Build dynamic web applications with Express, a key component of the Node/JavaScript development stack. In this …
book
Learning SQL, 3rd Edition
As data floods into your company, you need to put it to work right away—and SQL …
book
How Linux Works, 3rd Edition
Unlike some operating systems, Linux doesn’t try to hide the important bits from you—it gives you …
book
How Computers Really Work
How Computers Really Work is a hands-on guide to the computing ecosystem: everything from circuits to …