rse / componentjs

ComponentJS -- Powerful run-time Component System for structuring HTML5-based Rich Clients
http://componentjs.com/
Other
85 stars 13 forks source link

Scoped model members #35

Open AuspeXeu opened 10 years ago

AuspeXeu commented 10 years ago

As discussed earlier today, it would be nice to have model members that are scoped for overlying components. Example:

cs(this).model({
  'state:data-loaded@entityList'     : { value: false, valid: 'boolean' },
  'state:data-loaded@detailsView'  : { value: false, valid: 'boolean' }
})

Both model members have the same label but are only visible for the sub-tree, specified after the @ symbol.