AngularJS: ng-repeat list is not updated when a model element is spliced from the model array

后端 未结 5 2055
走了就别回头了
走了就别回头了 2020-11-27 12:42

I have two controllers and share data between them with an app.factory function.

The first controller adds a widget in the model array (pluginsDisplayed) when a link

5条回答
  •  -上瘾入骨i
    2020-11-27 13:18

    I had the same issue. The problem was because 'ng-controller' was defined twice (in routing and also in the HTML).

提交回复
热议问题