function (val) {
return bar = val
}
<router-view></router-view>
<a class="works-item" v-for="work in works" :href="work.link">
new Vue({
el: "#my_submit",
methods: {
send: function(){
axios.post('/my_page', json)
.then(function (response) {
this.somevar = response //<----------------------------------
console.log(response.data.foo);
})
.catch(function (error) {
console.log(error);
});
...
{{somevar}}