arturadib / agility

Javascript MVC for the "write less, do more" programmer
http://agilityjs.com
MIT License
542 stars 70 forks source link

How to bind a subproperty? #102

Open mickeymoon opened 11 years ago

mickeymoon commented 11 years ago

var user = { 'name': 'Arpit', email:'meetmickeymoon@gmail.com', id:'' } var obj= $$({ model:{ 'user': user },

view:{ format : "" // doesnt't work this way },

controller:{} })

robertjustjones commented 11 years ago

mickeymoon, it's hard to understand what you're describing here, but for starters you need at least a <div></div> in view.format. It's the same as in jQuery syntax when you use $( html-string ) as described here http://api.jquery.com/jQuery/#jQuery2