Email the Author
You can use this page to email Ajdin Imsirovic about Vue from Scratch.
About the Book
In this no fluff book, we dive straight in to building apps in Vue.
In chapter 1, we build the smallest possible Vue app, and get to know about:
* How to mount a Vue app
* String interpolation and data in HTML
* Adding a Vue instance and its options object
Once we've learned the very basics of how Vue is put together, we build a simple todo app in Vue 2.6, in chapter 2. Through the building of this app, we learn new concepts and build on the existing ones:
* Using the v-bind directive to connect Vue data to HTML attributes
* Handling button clicks with v-on:click
* Handling input events with v-on:input , v-on:keyup , v-on:keydown
* Handling more than one keypress event
* Preventing default behavior with event modifiers
* Modelling our app’s data
* Using the v-for directive to loop over Vue’s data arrays
* Preventing page reload on the form element
* Adding a toggle button with text and style updates
* Mounting and unmounting HTML elements with v-if and v-else
* Binding a CSS class in HTML to our Vue instance’s data option and showing this CSS class
conditionally
* Utilizing confirm popups in our apps
In Chapter 3, we introduce Vue CLI, and cover the following topics:
* How to install Vue on our machine,
* How to build a new Vue app using Vue CLI,
* How to serve our boilerplate Vue app in the browser,
* We inspected all the files and folders in the boilerplate Vue app that we installed using the
Vue CLI, and we discuss what they do and how they fit together
In Chapter 4, we have a sort of a revision of concepts from Chapters 1 and 2, but this time covered through the lens of working with Vue CLI, including:
* How to add a child component to our project
* How to interpolate string values from the data option of our Vue instance
* How to randomly pick and return string values from a method in the methods option of our
Vue instance, and interpolate that value in our single-file component’s template section
* How to bind a Vue instance’s data as a value of a template’s HTML attribute
* We also go through each file and folder in the starter app and describe why it's there and how it works
In Chapter 5, we learn about single-file components in a Vue app:
* Adding children components
* Revising interpolation (this time, in SFCs)
* Templating with values returned from methods
In Chapter 6, we discuss data flows in a Vue app:
* Sending data from the parent component to a child component
* Sending data from the child component to a parent component
* Emitting events with additional data
* We practice components' communication by building another Vue app
* We cover prop-related issues, such as naming conventions, using props in methods, fixing prop errors, passing props as various data types (prop binding)
In Chapter 7, we integrate a linting tool, ESLint, and a library, Bootstrap Vue, with our Vue CLI-powered Vue apps
* Revision of basic concepts: installing Vue, preparing VS Code to use it, installing the boilerplate Vue.js app with Vue CLI, removing redundant code from the starter app
* Setting up ESLint to work with Vue.js
* Styling our app with BootstrapVue
* Adding Vue Chrome extension
* Restarting our app (dealing with some weird errors)
In Chapter 8, we build the todo app again, this time with Vue CLI. This serves a double purpose:
* We revise all the concepts needed to build a todo app
* This chapter is a practical example on converting a non-Vue CLI app to a Vue CLI SFC Vue app. The insights you'll gain here are very valuable for a new Vue developer
In Chapter 9, another hands-on chapter, we continue working with the app we've built in Chapter 8, but this time we demo how to split a single file component into a component and a sub-component. We show the practical implementation of one-way data flow approach on an app that we're now quite familiar with, which helps us keep focus on understanding how to make our Vue apps more modular.
In Chapter 10, we "back-fill" our knowledge with some basic concepts that we've skipped in earlier chapters.
About the Author
Ajdin Imsirovic is a full-stack web developer who has published several courses (way back in 2015) on the subject of web design and web development.
Before self-publishing books on Leanpub, he authored four books on front-end development for Packt Publishing:
- Vue CLI 3 Quick Start Guide (Build and maintain Vue.js applications quickly with the standard CLI), May 2019
- Vue.js Quick Start Guide (Learn how to build amazing and complex reactive web applications easily using Vue.js), October 2018
- Elm Web Development (An introductory guide to building functional web apps using Elm), March 2018
- Bootstrap 4 Cookbook (Over 75 recipes to help you build elegant and responsive web applications with Bootstrap 4), June 2017
Additionally, he's published a number of books on the Leanpub platform, specifically:
- A Better Way to Learn JavaScript - The Basics: https://bit.ly/abwtljs1
- A Better Way to Learn JavaScript - Built-in Objects: https://bit.ly/abwtljs2
- A Better Way to Learn JavaScript - Useful Snippets: https://bit.ly/abwtljs3
- A Better Way to Learn JavaScript - Mini Apps: https://bit.ly/abwtljs4
- A Better Way to Learn JavaScript - Advanced JavaScript: https://bit.ly/abwtljs5
- Angular From Scratch: https://bit.ly/ai-afs
- Vue.js From Scratch: https://bit.ly/ai-vfs
- React from Scratch: https://leanpub.com/react-from-scratch
- Building Amazing Layouts - Learn the Basics of HTML5, CSS3, and Bootstrap 5: https://bit.ly/bldamzlyts1
- Building Amazing Layouts - Bootstrap 5 Layouts in Depth: https://bit.ly/bldamzlyts2