msavin:fetcher

v0.1.0Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Fetcher

Fetcher is a simple abstraction designed to make retrieving data through Method's really easy. It will run the method call for you, then deposit the result into a reactive dictionary. You can then use that data anywhere in your application, and it persists through hot reloads.

API

Fetcher relies on Meteor methods to retrieve data, and Reactive-Dict to return reactive data to Blaze or wherever you may need it.

1// get data from server
2Fetcher.retrieve("name", "methodName", ["param1", "param2", "param3"])
3
4// modify the data yourself
5Fetcher.set("dowhatever")  
6
7// return data to whatever source
8Fetcher.get("name")

Advertisment

Check out Meteor Toys, the insanely handy development tools for Meteor!

Licensed under MIT