-
Notifications
You must be signed in to change notification settings - Fork 4
Plugins
Olivier Wietrich edited this page Jul 29, 2014
·
1 revision
Here's a list of available plugins with their examples:
to get real time updates from a store in server side.
store.use(mirror('mychannel'));
store.set('hello', 'world');
to access nested data easily:
store.path('country.canada'); //get
store.path('country.canada.city', 'calgary');//set
to create template engines on both client/server sides:
store.filter('upper', function(str) {
return str.toUpperCase();
});
store.supplant('my name is {{name} | upper}');
to queue events.
store.queue('hello', 'world');
store.on('hello', function(val) {
//world
});