The technique that you are using is the recommended approach for completely replacing the data in an observableArray
. An observableArray
is actually just a normal observable
with extra functions added for useful array operations that act on the underlying array and trigger notifications.