I am trying to display the variable "stage" in the "{{ stageTest }} but I cannot seem to get it working. How do I go about displaying the variable with .vue? I have an alert box working so I know I am getting the result I just cant display it for some reason with .vue any help would be greatly appreciated.
<div>{{ stageTest }}</div>
test() {
CONTRACT.name1(function (err, res) {
var stage = res;
alert(stage);
this.stageTest = stage;
})
}