Gabriele Ferro Home

Intro to Vue 2 – Part.3

Day 91: 1 December 2020

**Today’s Progress:**

I only spent two hours programming.

I have completed the last three lessons of the introductory course on Vue.js!

Small project that I learned to build progressively.

I have learned that:

  • A component can let its parent know that an event has happened with $emit
  • A component can use an event handler with the v-on directive ( @ for short) to listen for an event emission, which can trigger a method on the parent
  • A component can $emit data along with the announcement that an event has occurred
  • A parent can use data emitted from its child
  • We can use the v-model directive to create two-way binding on form elements
  • We can use the .number modifier to tell Vue to cast that value as a number, but there is a bug with it
  • We can use the .prevent event modifier to stop the page from reloading when the form is submitted
  • We can use Vue to do fairly simple custom form validation

The last lesson concerns the creation of tabs and lifecycle hooks.

**Thoughts:**

This last topic is not clear to me. Nevertheless I was able to complete the course and I am satisfied.

Now I can resume where I interrupted the OpenClassRooms course !

**Link to tweet:**

**Link to work:**

https://github.com/Meimato/intro-to-vue

[twitter-follow screen_name='20Gabriele20']

February 2024
MTWTFSS
 1234
567891011
12131415161718
19202122232425
26272829 

Archives

Gabriele Ferro Home
Copyright © Ferro Gabriele. All rights reserved.