javascript - backbone collection filtred in more views -
i have question can make more views 1 collection ? example: have menu restaurant there main menu , drink menu when click main menu there every item , when click drink there filtred items, same food menu , next .... right ? there not collisions ?
thanks answer
yes, can access collection more 1 view view should reading collection. there no collisions assuming hide mainmenuview dom when display drinkmenuview. alternatively, have 1 menu view , add logic function inside menu view filter.
Comments
Post a Comment