I'm new to Bacon.js and I'm trying a lot to figure out how it works. So, is there a way to use variable, for example the hash from the URL, as if it would be an EventStream of onVariableChange
events. Sorry if what I'm writing is awkward.
Here is my Code:
var hash = window.location.hash.slice(1, window.location.hash.length);
newdata = hash.asEventStream("change").onValue( function(){**do_something_with_new_hash_value();**
} );