[ngrxform] updateArray,updateGroup 的差異


有時候我們常常會有這種巢狀的資料型態
以上面這個範例來說,我希望能新增到waferId,readings那層的userdefinedProperty
就會需要在reducer內寫updateGroup,updateArray來指定到對的階層位置

以這個Form State來說要對應到parameters 就是要用 updateGroup.parameters

而Parameters裡面又有多個資料需要對應就是寫updateArray

而每一個 updateArray中的(上圖以第0比為例) wafers 又要再一次updateGroup指定

而wafers裡面又是多筆就再使用updateArray即可對應到
上述我們希望的階層位置
最後的程式碼如下
