Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
let forecasts = new ForecastCollection();
var Store = _.extend({}, Backbone.Events, {
initialize() {
this.listenTo(forecasts, 'add remove change', () => this.trigger('change'));
getForecasts() {
return forecasts.toJSON();
saveForecast(data) {
return forecasts.create(data);
export default Store;
* in your component
balance: this.refs...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.