1.0.2 • Published 6 years ago
vue-holo v1.0.2
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.