I want to show and hide button on click in Vue js. It's working fine. When I click the 'show' button it will expand and button name will change to 'hide'. Then again click the hide button it will show the 'show' button without images. Before Click: https://prnt.sc/p7pjil
After Click(I need to change the button text to hide or some other name): https://prnt.sc/p7pj9b
<div id="app">
<h1>Click the Button to Show or Hide</h1>
<button class="btn-primary" v-on:click="isHidden = !isHidden">Click to Show the Images</button>
<img src="images/7.jpg" v-if="!isHidden">
<img src="images/8.jpg" v-if="!isHidden">
<img src="images/9.jpg" v-if="!isHidden">
</div>
<script>
var app = new Vue({
el: '#app',
data: {
isHidden: true
}
});
</script>