1.0.2 • Published 6 years ago

vue-holo v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

One-liner http requests to connect Vue with Holochain

This Vue plugin uses Axios to talk to a Holochain node. It exposes the following method on components

this.$holo()

with the following signature

(zomeName: string, fnName: string, data: object, clientCb: function)

The axios response object is handed to the callback function The schema for this callback may be found here.

Example:

data: function() {
  return {
    chairs: []
  };
},
methods: {
  setChairs: function(res) {
    this.$holo('testZome', 'ping', {thing: this.name}, this.log);
  }
}

This plugin came from a rushed hackathon weekend; needs much.

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago