Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping To Existing Models #193

Open
jaredswarts55 opened this issue Mar 27, 2014 · 0 comments
Open

Mapping To Existing Models #193

jaredswarts55 opened this issue Mar 27, 2014 · 0 comments

Comments

@jaredswarts55
Copy link

I wrote some mapping options that allow you to use knockout.mapping and map data to existing classes. Does this idea have any place in this codebase? Here is the code. I imaging it would have to be reworked heavily:
https://gist.github.com/jaredswarts55/9811856

It will cascade the json data into child properties as well if they have an extend with a typeMapper on it.

Example:
http://jsfiddle.net/bvg52/5/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant