Giter Club home page Giter Club logo

udemy-vuejs2's Introduction

Overview of VueJS 2 The Complete Guide by Max on Udemy

Section 2 - Using VueJS to Interact with the DOM

Section 3 - Using Conditionals and Rendering Lists

  • Use directive v-if for conditional rendering
  • v-if detach element from the DOM entirely, not just hide it. You can see inspecting the element.
  • You can use the v-else right after the v-if in order to show the opposite, but it must have to be next to the v-if in order to work.
  • Use <template> instead a <div> tag to group multiple elements and make them show or hide, prevent side effect to layout.
  • Use v-show to show/hide elements but not remove it from the DOM. The effect visually is the same as v-if but the element get a display: none/block ratherthan detach from DOM.
  • Use v-for for loop through a list (array/objects)
  • You can add a second parameter for v-for to get the index of element, like this: v-for="(ingredient, i) in ingredients". The name of parameters in parentesis is up to you, the only thing to remember is: first paramenter is the element itself, the second parameter is the index.
  • You can elaso use <template> with v-for loop to omit a wrapper tag.
  • Use v-for="n in 10" to loop through numbers. The number 10 in this case in the range.

Section 4 - First Course Project - The Monster Slayer

Section 5

Section 6

Section 7

Section 8

Section 9

Section 10

Section 11

Section 12

Section 13

Section 14

Section 15

Section 16

Section 17

Section 18

Section 19

Section 20

Section 21

udemy-vuejs2's People

Contributors

osnysantos avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.