I'm trying to hide this message but without success in vue js.
Currently im using js-cookie library
What I am actually trying to do:
html
<div v-show="closeBox()">
<span><a id="closeButton" @click="closeBox()" href="#">Close</a></span>
<p>som info message</p>
</div>
javascript:
closeBox(){
if(#CloseButton.clicked()){ // if the button is clicked (not working in vue js)
Cookies.set("cookie", "false");
var cookie = Cookies.get("cookie");
}
else
{
cookie = true
}
return cookie;