
Practice displaying data with interpolation and a ternary operator by binding a model property to the view, showing true or false based on the Intr value.
Install and enable the Vue.js devtools extension in Chrome, Firefox, and Edge, then open the Vue tab with F12 to inspect root component and its dynamic hours, minutes, and seconds.
Explore two-way binding with Vue.js 2 using the v-model directive to connect input, select, and textarea to the model, observe automatic updates between view and model.
Learn to bind an array to the Vue.js 2 model to track checkbox and radio button selections, display chosen languages in a paragraph, and practice with a short exercise.
Define event handlers using the v-on directive in Vue.js 2, binding to events and executing code or functions; increment a counter on button clicks and display it with interpolation.
Learn how to use Vue.js 2 stop and prevent modifiers to control event propagation and default actions, and practice image resizing with left and right click modifiers.
Explore how the v-once directive renders an element once, preventing updates, and compare it with rendering without v-once while incrementing a number (default 15) via a Vue instance.
Learn to apply multiple classes to text in Vue.js 2 by binding conditional classes to bold, italic, and underline using checkboxes and boolean model properties.
Learn how to create and reuse global components in Vue.js 2, using the static component method, templates, and kebab- or Pascal-case naming to build modular, reusable views.
Define a local Vue.js 2 component with a template and script, register it via the components property, and render multiple instances in the view to display three local high components.
Bind a message prop from the app's model to a child component in Vue.js via an attribute, then retrieve it with props and render it with interpolation.
Learn how to use custom events in Vue.js 2 by emitting events from a child and listening in the parent with v-on to update the parent total from three counters.
Discover Vue.js lifecycle hooks, including the created hook, to fetch three random users with axios from the random user API and bind the data to the view.
Transform local Vue components into global components through a guided exercise, naming one and all, and verify the same results in the browser.
Explore computed properties in Vue.js 2, keeping logic out of templates. Implement a reverse text computed property and a computed property that joins first and last names.
Explore how Vue.js 2 watchers detect changes to model property. See counter that increments and resets at ten, and a text watcher that shows a message when 'here' is detected.
Learn how to implement per-route navigation guards in Vue.js 2 by defining beforeEnter in the route or using beforeRouteEnter, beforeRouteUpdate, and beforeRouteLeave in components to control page transitions.
Set up your first vue.js project with the vue-cli, create a component-based app, install dependencies, choose runtime plus compiler, and run npm run dev to view at localhost:880.
Explore the architecture of a Vue.js 2 app, from index.html and main.js to reusable single-file components with template, script, and style, including the Halo world component and logo.
Learn to create and edit a Vue CLI app by scaffolding a project, defining an app component, and rendering a registered component that displays a table of people.
Create a new Vue app using Vue CLI, add a users component, fetch users from JSONPlaceholder with axios in the created hook, and render them in a Bootstrap table.
Define render functions in Vue.js 2 by converting templates into a render function that uses createElement and slots, including named title and bottom slots and the default slot.
Learn how to escalate a button click from a functional component to its parent by passing a click listener in render, enabling the parent to handle the event.
Learn two techniques to access store state from Vue.js 2 components: log store.state values directly from methods, and inject the store into all components via the Vue instance.
Explore the Vuex plugins section, using a store plugin to subscribe to mutations and state changes, triggering console logs on initialization and after each mutation.
Define a local halo mixin with a created hook that logs 'local mixin says hello'. Create a component that uses this mixin to display the text in the browser.
Transform a local mixin into a global mixin in Vue.js 2 using a static view mixin and created hook to log hello via halo, noting global scope caveats.
Create a next-gen project with npm, run the server at localhost:3000, then build three linked pages in the pages folder using the next link component and lorem ipsum content.
This video training was designed for JavaScript programmers who want to learn how to use the Vue.js 2 framework. Unlike other JavaScript frameworks, Vue.js can be adopted as and when required. It can also coexist with existing JavaScript logic without interfering with it.
You will use Vue.js to:
Create responsive user interfaces from scratch
Add features to an existing Web project
Create SPA web applications
Create applications for mobiles (both Android and iOS)
Today Vue.js is a very popular framework. Certainly because it is easy to set up, offers very good performance and can be used more or less extensively, depending on what is needed.
When I started creating this video training course, I had two choices:
Create a common thread and gradually integrate the different concepts learned throughout the training.
Create independent examples to easily and quickly learn the different concepts of Vue.js.
I am a face-to-face trainer and I was able to experiment these two approaches. Although the first has its fervent followers, the second gives better results in terms of learning, because each example can be chosen in an extremely precise way, without having to follow a logic of global integration which could neglect certain aspects of what needs to be learned. It is therefore this second approach that was adopted.
Each topic is approached independently and illustrates a particular aspect of Vue.js: computed properties, data binding, directives, event management, conditional classes, props, custom events, lifecycle hooks, etc. etc ..
Many exercises are available to you. When you are asked to stop scrolling the video, play the game: stop the video and code as you like, starting with a standard skeleton or a blank page. You will see that by doing so, your learning curve will be very fast. When you have finished coding, you can resume scrolling the video: a correction will be offered.
This training is very comprehensive. Here are some of the topics covered:
Standard view and ViewModel programming: methods, computed, data binding, bidirectional binding, directives (v-model, v-bind, v-html, v-for, v-cloak, v-once, v-if and many others).
Local and global components, communication between components and the ViewModel, prioritization of an application using components, slots, filters, watchers, transitions and animations.
SPA applications (routing, navigation guards).
Vue-Cli command line interface (application creation, render methods, JSX, functional components).
Vuex state manager, Vue.observable, plugins.
Mixins, personalized directives, NuxtJS, mobile applications.
All the source codes of the training are available.
I can only advise you one thing: experience the code for yourself, code and progress at your own pace. Little by little, Vue.js will seem more and more familiar to you and you will appreciate its power and flexibility.
So ... Happy coding!