<div id="app5">
<div v-if="status == 'loading'">
<div style="background-color:blue">loading</div>
</div>
<div v-else-if="status === 'success'">
<div style="background-color:green">success</div>
</div>
<div v-else="status == 'fail'">
<div style='background-color:red'>fail</div>
</div>
</div>
var app5 = new Vue({
el : '#app5',
data : {
status : 'loading'
}
})