Skip to content

Instantly share code, notes, and snippets.

@Manyaka
Last active May 11, 2019 19:31
Show Gist options
  • Save Manyaka/a32d49c65ecc4ad22187825f0627f2db to your computer and use it in GitHub Desktop.
Save Manyaka/a32d49c65ecc4ad22187825f0627f2db to your computer and use it in GitHub Desktop.
принцип открытия модальных окон во вью
<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