Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Vue.js 2 for absolute beginners
Rating: 4.5 out of 5(11 ratings)
96 students

Vue.js 2 for absolute beginners

Learn Vue.js by building components and connected apps
Created byMichel Martin
Last updated 10/2020
English
English [Auto],

What you'll learn

  • Create responsive user interfaces
  • Add features to an existing web project
  • Create SPA web applications (single page)
  • Create mobile apps (Android and iOS)
  • Acquire knowledge to properly program in Vue js 2 (methods, computed properties, data binding, directives, etc.)
  • Learn how to create a components hierarchy
  • Use the Vue-Cli interface (application creation, render methods, JSX, functional components).
  • Facilitate communication between components with the Vuex state manager, or with observables.
  • Create plugins for Vue JS
  • Use mixins, custom directives and NuxtJS

Course content

7 sections92 lectures8h 47m total length
  • Vue.js Key Principles2:15

    discover the key principles of Vue.js 2 for absolute beginners, learning to add functionality to existing projects, create single-page apps and mobile apps, and appreciate its powerful, easy setup.

  • Preparing your development environment6:13

    Prepare your Vue.js 2 development environment by installing Visual Studio Code, getting started with a CDN, creating a clean project folder, and setting up a live-reload server with npm.

  • Vue.js MVVM pattern2:38

    Explore the mvvm pattern in Vue.js 2, defining the model, view, and view model, and learn how two-way data binding connects data to the user interface.

  • A first Vue.js project4:09

    Define data in the Vue.js 2 model and render it in the view with interpolation. Display a string and a timestamp in milliseconds since epoch.

  • A second Vue.js project3:16

    Learn how to insert JavaScript functions into Vue interpolations, reverse a string with split, reverse, and join, and display the current time by extracting hours, minutes, and seconds.

  • Your first exercise3:08

    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.

  • Computed properties3:13

    Learn to use computed properties in Vue.js 2 to move complex logic from the template into the view model, then practice a time computed property displayed via interpolation.

  • Computed properties vs Methods1:36

    Compare computed properties and methods in Vue.js 2, showing that computed properties re-evaluate only when dependencies change, making them more efficient; methods run on every call.

  • Data binding4:25

    Bind a model property to an XHTML attribute using the rebind prefix to display an image. Define the image address in the model and verify the binding in the browser.

  • Accessing text nodes5:46

    Learn how Vue.js 2 binds a person object's first name, last name, and age to the view using v-text and v-html directives, including a timed data update.

  • A Vue.js clock4:17

    Build a Vue.js clock by binding hours, minutes, and seconds in a view model, update with setInterval using a date object, and format two-digit values.

  • Using Vue.js Devtools2:21

    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.

  • Two-way binding6:43

    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.

  • Using v-model and v-bind directives4:11

    Learn to bind inputs to the model using v-model and v-bind in a Vue.js 2 app, linking text boxes and updating the second box to uppercase on key events.

  • An array in the Model4:33

    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.

  • The v-html directive4:53

    Display raw HTML in Vue.js with the v-html directive by interpolating model content into the view. Render an image and an HTML table from a content array to show updates.

  • Event handlers3:16

    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.

  • Using the methods section3:22

    Bind inputs with v-model to name and define an event handler. Use the view model with the methods property on button click to display Hi plus the entered name.

  • Event handlers with arguments2:42

    Learn to pass arguments to an event handler in Vue.js by using buttons that show a message box with 'Hi' or 'Good morning' followed by the entered name.

  • Using $event in an event handler4:54

    Learn to pass the $event object to a Vue.js event handler to access mouse coordinates on image hover, updating a view model's x and y properties and displaying them.

  • Using preventDefault() and stopPropagation() JavaScript functions8:54

    Master how preventDefault and stopPropagation control event behavior in a Vue.js context. Use a practical nested-element example to prevent page reload and display the square of a number without refreshing.

  • stop and prevent event modifiers7:14

    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.

  • Using arrays in the Model4:14

    Build a simple Vue.js app that collects known programming languages in an input, pushes each entry into a model array on button click, and displays the list with interpolation.

  • Viewing languages in a bulleted list7:20

    Learn to render a bulleted list in Vue.js 2 with v-for, display languages from an array, use index for each item, and delete items with splice.

  • Dynamic arguments6:06

    Demonstrates dynamic arguments in Vue.js 2 using v-on and v-bind with UN and REBIND directives to toggle images based on radio button choices and click or double-click events.

  • Browsing JSON objects with a v-for directive3:29

    Learn to use the v-for directive to iterate over an array of objects, display each person's first name, last name, and age with interpolations, and practice with a hands-on exercise.

  • Keyboard events4:37

    Demonstrates handling keyboard events in Vue.js 2 to convert a text field input to uppercase on enter or button click, using v-model binding and an event handler.

  • The v-cloak directive1:26

    Apply the v-cloak directive to prevent uncompiled expressions from flashing as double braces, ensuring clean interpolation in Vue.js pages.

  • The v-once directive3:28

    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.

  • Conditional classes8:01

    Learn to conditionally style in Vue.js 2 by binding a class to a model boolean and manage language items with checkboxes.

  • Using several classes in an item5:20

    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.

  • Modifying inline styles7:49

    Modify inline styles in html tags by binding a style object with the rebind style directive in vue.js 2, linking color and size to two dropdowns for live text updates.

  • Displaying HTML conditionally9:39

    Learn to display HTML conditionally in Vue.js 2 using v-if, v-else, and v-show, with a hands-on exercise building a to-do list where checkboxes toggle item text based on state.

Requirements

  • A basic knowledge of HTML5, CSS and JavaScript is preferable to be comfortable in this training.

Description

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!

Who this course is for:

  • JavaScript programmers who want to learn how to use the Vue JS 2