Skip to content

zouhangwithsweet/xs-flow

Repository files navigation

xs-flow

npm npm
subscribe user's progress in your webApp (power by xstream, base on vuex & vue-router)

How to use

import XsFlow from 'xs-flow'
import router from 'path/to/router'
import store from 'path/to/store'
import someBlocks from 'path/to/blocks'

Vue.prototype.$xsFlow = new XsFlow(router, store)
  .push(...someBlocks)
  .create()
<script>
  export default {
    someHandler() {
      this.$xsFlow.next()
    }
  }
</script>

Example

use mobile mode to check it

hello app