Knockout Computed Observable Array from other Observable Arrays

女生的网名这么多〃 提交于 2019-12-23 05:09:18

问题


I am using knockout with my ASP.NET Core project to achieve following 1- I am trying to compute the sold inventory based upon opening, closing and delivery inventory of a product.

I have four arrays. OpeeningInventories,ClosingInventories, DeliveredInventories and SoldInventories. I am creating these arrays identically at the server side. Each array have a number of GasProducts (model). I have created JSFiddle to show you the code. Sorry the code somewhat works in my project but it is not working in JSFiddle. I will greatly appreciate if you can help me fix my problem. Thanks in advance. Here is the link to JSFIDLE

来源:https://stackoverflow.com/questions/40309029/knockout-computed-observable-array-from-other-observable-arrays

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!