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

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -