Giter Club home page Giter Club logo

knockout.wrap's Issues

updateFromJS using

I wanted to use ko.wrap.updateFromJS in following way:
ko.wrap.updateFromJS (newNode, options, mappingData);
where mappingData is data which I have to map to existing newNode object of my custom class. I was not able to to it, as for some reason updateFromJS expect that newNode is observable. It's not true in my case.
How can I overcome this trouble?

NuGet package?

It would be nice to have this set up as a NuGet package, if possible. A pretty large chunk of folks are using NuGet to get everything else.

Just a thought.

Knockout 2.2.1

Does this work with Knockout 2.2.1?

In my case it converts only a few properties to JS in ko.wrap.toJS.
Rest all properties are ignored. It is working till version knockout 2.0.0.

Doesn't unwrap observable objects

I understand knockout.wrap doesn't create observable for objects so it also doesn't unwrap them.
But let's say I have a custom model that I simply want to unwrap so to log my JS (or post it to the server as JSON), I would expect it to dewrap everything!

See the differences in default dewrapping between this plugin and another "fast mapper" plugin
http://jsbin.com/qupijoquwabi/1/

Need real world usage examples

So how do you use it with all the features of ko.mapping?
i.e. to ignore some elements, to control the create, update or children, copy, observe , include and so on.
Maybe your is way faster, but it also seem way featureless. Am I wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.