Created
July 11, 2019 18:22
-
-
Save cristijora/f5cef0e108a5e3ca7eac51531dfc34f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dropdown.vue (parent) | |
<template> | |
<div> | |
<button @click="showMenu = !showMenu">Click me</button> | |
<transition name="fade"> | |
<dropdown-menu v-if="showMenu" :items="items"></dropdown-menu> | |
</dropdown-menu> | |
</div> | |
<template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment