Refresh ng-repeat data

后端 未结 4 1592
梦毁少年i
梦毁少年i 2021-01-19 17:30

I have a big list containing all of my data, and I have another shorter list containing only the selected data. Originally, all the data is selected so both lists are identi

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-19 18:04

    Just try to use $rootScope. Because you give the ng-controller="BrainRegionsCtrl" for two div that's why the $scope.selected_brain_regions will go to the initial state in the second div.

    OR

    you should give the ng-controller="BrainRegionsCtrl" to the root div which contains the two parts of your code..

提交回复
热议问题