You should look into ng-show. Instead of having to search for your modal using jquery, you could bind something like $scope.showModal.