Last active
May 11, 2019 19:31
-
-
Save Manyaka/a32d49c65ecc4ad22187825f0627f2db 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
<template> | |
<div class="Modal"> | |
<button v-on:click="isVisible = true" type="button">Показать попап</button> | |
<modal v-bind:show="isVisible"> | |
<div>какой то контент</div> | |
</modal> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'Modal', | |
data() { | |
return { | |
isVisible: false, | |
}; | |
}, | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment