How to create a computed observable array in Knockout

后端 未结 5 1106
小蘑菇
小蘑菇 2021-01-07 16:25

I would like to know how to create a computed observable array.

In my view model, I have 2 observable arrays, and I would like to have a computed observable array

5条回答
  •  悲&欢浪女
    2021-01-07 16:57

    An observableArray is just an observable with a few more properties. Therefore, a computed observable that returns an array in the closure will be treated as an array.

提交回复
热议问题