The Majesty of Vue.js

Author: Alex Kyriakidis;Kostas Maniatis  

Publisher: Packt Publishing‎

Publication year: 2016

E-ISBN: 9781787125209

P-ISBN(Paperback): 9781787124370

Subject: TP301.6 algorithm theory;TP31 computer software;TP312 程序语言、算法语言

Keyword: 计算机软件,算法理论,自动化技术、计算机技术,程序语言、算法语言

Language: ENG

Access to resources Favorite

Disclaimer: Any content in publications that violate the sovereignty, the constitution or regulations of the PRC is not accepted or approved by CNPIEC.

Description

Create fast front-end applications and increase the performance of your existing projects with Vue.js integration About This Book • Learn about computed properties, components, filters, routing, ES6, and workflow automation • This book will show you how easy Vue.js is to grasp, and that its integration can save you a lot of time and effort • This book will guide you through the path of the rapidly spreading JavaScript Framework Vue.js Who This Book Is For This book is for anyone interested in learning to use a lightweight and simple JavaScript framework. No excessive knowledge is required, though it would be good to be familiar with HTML and JavaScript. This book is also useful for those who already know their way around Vue.js and want to expand their knowledge. What You Will Learn • Get to know the fundamentals of Vue.js • Consume an API using Vue Resource • Explore components, filters, methods, and computed properties are and find out how to use them to build robust applications • Break your applications into Single File Components • Build Single Page Applications using Vue Router • Automate your workflow using Vue.js In Detail Vue.js is a library to build interactive web interfaces. The aim is to provide the benefits of reactive data binding and composable view components with an API that is as simple as possible. This book will teach you how to efficiently implement Vue.js in your projects. It starts with the fundamentals of Vue.js to building large-scale appli

Chapter

Comparison with jQuery

Homework

Chapter 3: A Flavor of Directives

v-show

v-if

Template v-if

v-else

v-if versus v-show

Homework

Chapter 4: List Rendering

Installing and using Bootstrap

v-for

Range v-for

Array rendering

Looping through an array

Looping through an array of objects

Object v-for

Filtered results

Ordered results

Custom filter

Homework

Chapter 5: Interactivity

Event handling

Handling events inline

Handling events using methods

Shorthand for v-on

Event modifiers

Key modifiers

Computed properties

Using computed properties to filter an array

Homework

Chapter 6: Components

What are Components?

Using Components

Templates

Properties

Reusability

Altogether now

Homework

Chapter 7: Class and Style Bindings

Class binding

Object syntax

Array syntax

Style binding

The object syntax

The array syntax

Bindings in action

Homework

Chapter 8: Consuming an API – Preface

CRUD

API

Download book's code

API endpoints

Chapter 9: Working with Real Data

Geting data asynchronously

Refactoring

Updating data

Deleting data

Chapter 10: Integrating vue-resource

Overview

Migrating

Enhancing functionality

Editing stories

Creating new stories

Storing and updating unit

JavaScript file

Source code

Homework

Preface

API endpoints

Your code

Chapter 11: Pagination

Implementation

Pagination links

Homework

Chapter 12: ECMAScript 6

ES6 features

Compatibility

Variable declarations

let declarations

Constant declarations

Arrow functions

Modules

Classes

Default parameter values

Chapter 13: Advanced Workflow

Compiling ES6 with Babel

Installation

Configuration

Build alias

Usage

Homework

Workflow automation with Gulp

Task runners

Installation

Usage

Watch

Homework

Module bundling with Webpack

Module bundlers

Webpack

Installation

Usage

Automation

Summary

Chapter 14: Mastering Single File Components

vue-cli

Vue's templates

Installation

Usage

Webpack template

Project structure

index.html

Hello.vue

App.vue

main.js

Forming .vue files

[Nested components]

Nested components

Chapter 15: Swapping Components

Dynamic components

The is component

Navigation

Chapter 16: Vue Router

Installation

Usage

Nested routes

Route matching

Named routes

Route object

Dynamic segments

Route alias

Route go

Filtering transitions

Homework

Chapter 17: Further Learning

Tutorials

Videos

Books

Open source projects

Chapter 18: Closing Thoughts

Index

The users who browse this book also browse