I'm new to Vue, but I'm trying to figure out how to solve this issue
I have a reference to a component here.
<notification-component v-if="error" :error="error"><notification-component>
I have a method that does an axios call and I'm checking the resonse.data['responseCode'] == '500'
if it is 500 then create the variable error like this
if(response.data['responseCode'] == "500"){
this.error = response.data['applicationCode']['message'];
}
The problem is that if I run the axios call once, it works great! It will run display the error just fine. If I run it again (Even those the error exists), it doesn't show the error message. I hope this makes sense. It's like I need the V-if but maybe something with the state.
Thanks, Dan