Hey,
I'm currently migrating from the knockout mapping plugin to this plugin. One thing I did with the mapping plugin was to build constructor functions (pseudo-classes) for my more complex view models. This allowed me, through custom instantiation, to give those a reference to their parent view model. For example, order view model could get reference to Customer view model etc. Obviously one should try to minimize those connections, but sometimes they aren't avoidable.
While rebuilding those view models with the viewmodel-plugin, how does one do that here? With the extend mapping option, I don't see a way to get to a reference, since there is only the single argument.
Hey,
I'm currently migrating from the knockout mapping plugin to this plugin. One thing I did with the mapping plugin was to build constructor functions (pseudo-classes) for my more complex view models. This allowed me, through custom instantiation, to give those a reference to their parent view model. For example, order view model could get reference to Customer view model etc. Obviously one should try to minimize those connections, but sometimes they aren't avoidable.
While rebuilding those view models with the viewmodel-plugin, how does one do that here? With the extend mapping option, I don't see a way to get to a reference, since there is only the single argument.