Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

A couple of questions about Observes

$
0
0
I have a couple of questions about Observes and the best practices on how to use them.  

The getter functionality seems to have been removed, I'm wondering why that is?  Is there a common mechanism used as an alternative?

Also what is the best way to create compound attributes, for instance if I have first name and last name, but I want to my observe to be able to return a value for .attr('fullName'), this should also work for observing if I use .bind('fullName').  I could see implementing this with the setter plugin and adding an additional attribute to mean fullName, but that doesn't seem like a clean implementation to me.  For instance in ember you might do something like http://emberjs.com/guides/object-model/computed-properties/.

Are there any future plans around how Observe/Model will improve going forward?

Thanks


Viewing all articles
Browse latest Browse all 3491

Trending Articles