Posts

Showing posts from April 20, 2019

Change value of {{ vari }} on Vue

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box; } -1 im just starting on vue js and ive been struggling for hours to do very simple things like change the value of {{vari}} using JS on the mounted function. Can somebody provide me an answer? I want the paragraph to display a different message from teste when it enters the mounted() function <template> <div class="teste"> <p>{{vari}}</p> </div> export default { name: 'Schedual', data: function() { return { vari: "teste", } }, mounted () { //change value of {{vari}} } } EDIT: thanks. why doesnt it work when i try to cha...