Added scope.$apply() calls after adding/removing items to make sure the model gets updated immediately.