[Vuejs]-VueJS realtime check disk

3๐Ÿ‘

You need to refresh the page because mounted() executed only during creation of the component.
If you have variable and want to fetch a new data when this variable changed, you can use watch or computed. If you want to get a new data whenever it changed on server side you need to use websocket.

๐Ÿ‘คmoh1434

1๐Ÿ‘

According to Vue lifecycle,if you want to fetch result on realtime you should put you code inside computed and watch property.
If any changes occur it will do two way binding with Html element and show changes without refreshing page

For More info go through this link โ€“ https://v2.vuejs.org/v2/guide/computed.html

๐Ÿ‘คPallav Chanana

Leave a comment