javascript - Using $watch, table div dissapear -
i'm using isteven-multi-select directive multi-select dropdown. i'm giving thingslist , creates checkedlist while choose things. so @ first used button confirm selection , ng-click triggered postfunction checkedlist . , worked fine. but decided add watcher wouldn't need press button. can see @ debug mode it's working (list updates correctly), there problem. i'm showing updated list @ page datatables . somehow, after choosing @ dropdown ($watch event) <div> table dissapearing. , it'not ng-show or dissapears dom itself. i have no idea why. this.postthings = function (checkedlist) { $http.post("/list/" json.stringify(checkedlist)).then( function success(response) { $scope.thingslist.splice(0); array.prototype.push.apply($scope.thingslist, response.data); }, function error(data) { console.log(data); $.notify({message: data....