If you are binding to events (using bind
) outside of Angular, then you need to $apply
to run an Angular digest and update the scope:
angular.element(document.getElementById("pages")).bind("click", function() {
$scope.menuService.show = false;
$scope.$apply();
});