Leanpub Header

Skip to main content

VueJS Documentation

Offline Ebook PDF Version of the VueJS v2.6.11 Documentation

VueJS Official Documentation in a Kindle / Ebook format which is easy to read. This is version 2.6.11 as hosted on vuejs.org, the idea is to help the community with a portable and easy to read version for offline reference.

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
377
Pages
About

About

About the Book

VueJS is a Progressive Javascript Framework. This PDF ebook is a portable offline reference guide for the community, can be printed or synced with your kindle for a better reading experience. It's based on VueJS version v.2.6.11

This is an excellent reference format for VueJS beginners, is not a tutorial just the official documentation for your reference.

"An incrementally adoptable ecosystem that scales between a library and a full-featured framework."

"Already know HTML, CSS and JavaScript? Read the guide and start building things in no time!"

"20KB min+gzip Runtime Blazing Fast Virtual DOM Minimal Optimization Efforts"

Discover, What is VueJS ? and then go through the Getting Started with VueJS to learn how to quickly install VueJS and start building projects !!

Note: The interactive examples which appear in the online documentation couldn't be included in this format.

This book is not officially endorsed by VueJS

Check out other books from the author:

Javascript Snippets

Appwrite Up and Running

Front End Developer Interview Questions

ReactJS Documentation

Backend Developer Interview Questions

VueJS Documentation

React Redux Documentation

DevOPs

Data Science Workflow for Beginners

Share this book

License

Creative Commons Attribution 4.0 International License

Price

Pick Your Price...

Minimum price

$7.99

$7.99

You pay

$7.99

Author earns

$5.11

Cause gets

$1.28
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 1)

1
The author will earn $12.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

A.J. García

I started my coding career back in 2003. Lately I've been involved a lot in Javascript for frontend and the backend.

I would love passing along to you some of the experiences and challenges I've faced over the years.

Contents

Table of Contents

This Book

  1. Recommended Resources
  2. Recommended Books

Installation

  1. Vue Devtools
  2. Direct <script> Include
  3. NPM
  4. CLI
  5. Explanation of Different Builds
  6. Dev Build
  7. Bower
  8. AMD Module Loaders

Introduction

  1. What is Vue.js?
  2. Getting Started
  3. Declarative Rendering
  4. Conditionals and Loops
  5. Handling User Input
  6. Composing with Components
  7. Ready for More?

The Vue Instance

  1. Creating a Vue Instance
  2. Data and Methods
  3. Instance Lifecycle Hooks
  4. Lifecycle Diagram

Template Syntax

  1. Interpolations
  2. Directives
  3. Shorthands

Computed Properties and Watchers

  1. Computed Properties
  2. Watchers

Class and Style Bindings

  1. Binding HTML Classes
  2. Binding Inline Styles

Conditional Rendering

  1. v-if
  2. v-show
  3. v-if vs v-show
  4. v-if with v-for

List Rendering

  1. Mapping an Array to Elements with v-for
  2. v-for with an Object
  3. Maintaining State
  4. Array Change Detection
  5. Displaying Filtered/Sorted Results
  6. v-for with a Range
  7. v-for on a <template>
  8. v-for with v-if
  9. v-for with a Component

Event Handling

  1. Listening to Events
  2. Method Event Handlers
  3. Methods in Inline Handlers
  4. Event Modifiers
  5. Key Modifiers
  6. System Modifier Keys
  7. Why Listeners in HTML?

Form Input Bindings

  1. Basic Usage
  2. Value Bindings
  3. Modifiers
  4. v-model with Components

Components Basics

  1. Base Example
  2. Reusing Components
  3. Organizing Components
  4. Passing Data to Child Components with Props
  5. A Single Root Element
  6. Listening to Child Components Events
  7. Content Distribution with Slots
  8. Dynamic Components
  9. DOM Template Parsing Caveats

Component Registration

  1. Component Names
  2. Global Registration
  3. Local Registration
  4. Module Systems

Props

  1. Prop Casing (camelCase vs kebab-case)
  2. Prop Types
  3. Passing Static or Dynamic Props
  4. One-Way Data Flow
  5. Prop Validation
  6. Non-Prop Attributes

Custom Events

  1. Event Names
  2. Customizing Component v-model
  3. Binding Native Events to Components
  4. .sync Modifier

Slots

  1. Slot Content
  2. Compilation Scope
  3. Fallback Content
  4. Named Slots
  5. Scoped Slots
  6. Dynamic Slot Names
  7. Named Slots Shorthand
  8. Other Examples
  9. Deprecated Syntax

Dynamic & Async Components

  1. keep-alive with Dynamic Components
  2. Async Components

Handling Edge Cases

  1. Element & Component Access
  2. Programmatic Event Listeners
  3. Circular References
  4. Alternate Template Definitions
  5. Controlling Updates

Enter/Leave & List Transitions

  1. Overview
  2. Transitioning Single Elements/Components
  3. Transitions on Initial Render
  4. Transitioning Between Elements
  5. Transitioning Between Components
  6. List Transitions
  7. Reusable Transitions
  8. Dynamic Transitions

State Transitions

  1. Animating State with Watchers
  2. Dynamic State Transitions
  3. Organizing Transitions into Components
  4. Bringing Designs to Life

Mixins

  1. Basics
  2. Option Merging
  3. Global Mixin
  4. Custom Option Merge Strategies

Custom Directives

  1. Intro
  2. Hook Functions
  3. Directive Hook Arguments
  4. Function Shorthand
  5. Object Literals

Render Functions & JSX

  1. Basics
  2. Nodes, Trees, and the Virtual DOM
  3. createElement Arguments
  4. Replacing Template Features with Plain JavaScript
  5. JSX
  6. Functional Components
  7. Template Compilation

Plugins

  1. Using a Plugin
  2. Writing a Plugin

Filters

Single File Components

  1. Introduction
  2. Getting Started

Testing

  1. Introduction
  2. Unit Testing
  3. Component Testing
  4. End-to-End (E2E) Testing

TypeScript Support

  1. Official Declaration in NPM Packages
  2. Recommended Configuration
  3. Development Tooling
  4. Basic Usage
  5. Class-Style Vue Components
  6. Augmenting Types for Use with Plugins
  7. Annotating Return Types
  8. Annotating Props

Production Deployment

  1. Turn on Production Mode
  2. Pre-Compiling Templates
  3. Extracting Component CSS
  4. Tracking Runtime Errors

Routing

  1. Official Router
  2. Simple Routing From Scratch
  3. Integrating 3rd-Party Routers

State Management

  1. Official Flux-Like Implementation
  2. Simple State Management from Scratch

Server-Side Rendering

  1. The Complete SSR Guide
  2. Nuxt.js
  3. Quasar Framework SSR + PWA

Security

  1. Reporting Vulnerabilities
  2. Rule No.1: Never Use Non-trusted Templates
  3. What Vue Does to Protect You
  4. Potential Dangers
  5. Best Practices
  6. Backend Coordination
  7. Server-Side Rendering (SSR)

Reactivity in Depth

  1. How Changes Are Tracked
  2. Change Detection Caveats
  3. Declaring Reactive Properties
  4. Async Update Queue

Migration from Vue 1.x

  1. FAQ
  2. Templates
  3. Lifecycle Hooks
  4. v-for
  5. Props
  6. Computed properties
  7. Built-In Directives
  8. Custom Directives <sup>simplified</sup>
  9. Transitions
  10. Events
  11. Filters
  12. Slots
  13. Special Attributes
  14. Interpolation
  15. Reactivity
  16. DOM-Focused Instance Methods
  17. Meta Instance Methods
  18. Instance DOM Options
  19. Global Config
  20. Global API

Migration from Vue Router 0.7.x

  1. Router Initialization
  2. Route Definitions
  3. Route Matching
  4. Links
  5. Programmatic Navigation
  6. Router Options: Modes
  7. Route Options: Misc
  8. Route Hooks

Migration from Vuex 0.6.x to 1.0

  1. store.watch with String Property Path <sup>replaced</sup>
  2. Store’s Event Emitter <sup>removed</sup>
  3. Middlewares <sup>replaced</sup>

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

Causes

Causes Supported

Code Club
A nationwide network of volunteer-led after school coding clubs for children aged 9-11.
We create projects for our volunteers to teach at after school coding clubs or at non-school venues such as libraries. The projects we make teach children how to program by showing them how to make computer games, animations and websites. Our volunteers go to their local club for an hour a week and teach one project a week. Each term the students will progress and learn more whilst at the same time using their imaginations and making creative projects. Terms 1 & 2 use Scratch to teach the basics of programming. Term 3 teaches the basics of web development using HTML and CSS. Term 4 teaches Python and so on. We’d like to put a Code Club in every single primary school in the country. There are over 21,000 primary schools in the UK, it’s a big task but we think we can do it!

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub