So the title is a little confusing, I think, but here's the issue:
I have one model for my entire page called FD.page. I have an attribute of that model called filters, thus FD.page.get("filters") returns an object with multiple attributes itself, date, location, etc.
I would like to be able to set values to the attributes of the filters attribute, and I can't seem to figure out how to specify that node.
So something like FD.page.set("filters.location", "close");
Any help will be much appreciated. Thanks!
filters a backbone model
Will fire change event.
FD.page.get('filters')['location'] = 'close';
This won't fire a change event on the model though. If you want to fire the change event, then you'll have to fire it manually after you set it.