[DISCOUNTED] Master CSS Grid Course: https://bit.ly/2NONxxE
if, else ,else if in vuejs - in this lacture we will learn about if else and else if with combination of vuejs. How vuejs implements if else if and how it works. In this lecture you will learn if, if-else and else-if
Vuejs Tutorial Playlist : • Vuejs tutorial for beginners - vuejs ...
First we will go over simple if. vuejs have v-if directive to create if condition. this v-if directive must have boolean value. so there could be any javascript expression which returns boolean value.
Next in conditional rendring with vuejs we will learn how to create else part of condition in vue. And this else part is implemented using another vuejs directive v-else.
And after that we will go over if, else-if to add multiple condition to our conditional rendering. And for this we will use vuejs directive which is v-else-if and also this should have boolean value.
After after demonstrating all three if, if-else and if, else-if, else I will show you how you can render block of code without showing actual div which contains condition.
And in the last we will find something strange. What's that??? Let's checkout.
So in this lecture you will learn about if, else-if and if-else plus template tag. - conditional rendering.
Follow me:
Twitter: / jd13400010