Vue.js: Working With Forms & Unit Testing

Vue.js 2.6    |    Beginner
  • 15 videos | 59m 41s
  • Includes Assessment
  • Earns a Badge
Likes 31 Likes 31
Vue.js, a Javascript front-end framework that is lightweight, flexible, progressive, is easy to set up to quickly start creating apps. In this 15-video course on important aspects of Vue.js, learners see how to use the V-Model directive to set up two-way data binding between Form Inputs and locally managed data. Then you will learn to work with FormData in Vue to construct a set of key/value pairs. Next, the course demonstrates how to install the necessary tools for unit testing, and how to create and run teAPI. You will learn to use Jest, a JavaScript unit testing tool; how to stub certain Vue containers as part of setting up unit tests; and examine mixins (Cascading Style Sheet properties similar to functions) and global mixins to define and distribute reusable bits of logic among the app's components. You will learn to use built-in and custom directives in Vue to add to templates. Finally, learners will see that custom filters are a way to apply common formatting to text and return an output.

WHAT YOU WILL LEARN

  • identify the subject areas covered in this course
    use v-model to perform two-way data binding in a Vue app
    use modifiers to cast model data into an expected format
    bind to the submit method of a form element and respond in Vue
    validate form data according to business requirements
    set up unit testing using the Vue CLI
    create and run a unit test against a Vue component
    re-run unit tests automatically on save
  • reuse app logic using mixins
    set up global mixins in a Vue app
    use Vue-provided directives in apps
    create and use custom directives
    set up and use filters in Vue
    create and use custom filters
    create a Vue component, add form elements, inputs, and buttons, and display alerts

IN THIS COURSE

  • 1m 36s
  • 4m 34s
    During this video, you will learn how to use v-model to perform two-way data binding in a Vue application. FREE ACCESS
  • Locked
    3.  Typecasting v-model Data
    3m 12s
    In this video, learn how to use modifiers to format model data as expected. FREE ACCESS
  • Locked
    4.  Submitting Form Data
    4m 27s
    In this video, learn how to bind to the submit method of a form element and respond in Vue. FREE ACCESS
  • Locked
    5.  Validating Form Data
    6m 38s
    In this video, you will learn how to validate form data to meet business requirements. FREE ACCESS
  • Locked
    6.  Configuring Unit Testing in Vue
    3m 6s
    In this video, you will learn how to set up unit testing using the Vue CLI. FREE ACCESS
  • Locked
    7.  Unit Testing a Component
    3m 3s
    In this video, you will learn how to create and run a unit test against a Vue component. FREE ACCESS
  • Locked
    8.  Using Watchers with Unit Tests
    4m 1s
    In this video, you will learn how to automatically re-run unit tests on save. FREE ACCESS
  • Locked
    9.  Using Mixins
    5m 8s
    In this video, you will learn how to reuse app logic using mixins. FREE ACCESS
  • Locked
    10.  Global Mixins
    3m 52s
    In this video, you will learn how to set up global mixins in a Vue app. FREE ACCESS
  • Locked
    11.  Using Directives
    5m 5s
    Find out how to use directives provided by Vue in apps. FREE ACCESS
  • Locked
    12.  Creating Custom Directives
    5m 39s
    Learn how to create and use custom directives. FREE ACCESS
  • Locked
    13.  Using Filters
    3m 1s
    In this video, you will learn how to set up and use filters in Vue. FREE ACCESS
  • Locked
    14.  Creating Custom Filters
    3m 27s
    In this video, you will learn how to create and use custom filters. FREE ACCESS
  • Locked
    15.  Exercise: Creating Vue-Based Forms
    2m 52s
    In this video, you will learn how to create a Vue component, add form elements and inputs, buttons, and display alerts. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Likes 35 Likes 35  
Likes 1956 Likes 1956  
Likes 2025 Likes 2025