vuejs/vue-rx

help me. $watchAsObservable How to execute directly once the page is loaded

reaink opened this issue · 1 comments

Want to monitor variables, and also want to load data initially.

regou commented

@nshusr The optional options object accepts the same options as vm.$watch.
vm.$watch

vm.$watchAsObservable('a', { immediate: true })