Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Build Your First Vue.js App > Lesson 8

Understanding directives

Let's now learn about a feature of Vue called "directives".

These are special attributes that you can add to your HTML tags that provide certain functionalities.

Here's an example where we have a paragraph tag, and a custom attribute added to it called v-if.

<p v-if="seen">Now you see me</p>

v-if is a Vue directive. All Vue directives start with this "v-" so they can easily be identified.


Back to course page

Click to load comments...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom