Scoping issue - page not being updated from http post in sibling controller

前端 未结 2 915
难免孤独
难免孤独 2021-01-28 03:00

I am using ng-click to call a function that request new content for the scope. Im doing that by calling a post request that is handeled by php. When I run the script I can see t

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-28 04:02

    You are tracking the changes by id. So as long the object's ids don't change, the page won't be refreshed. Try to leave the track by out or for better performance, do it with some properties you compare or your own comparer function as described here: ng-repeat with track by over multiple properties

提交回复
热议问题