I am developing small web page for mobile devices with Angular. I want to toggle click listener for whole page like
$('.page').on('click',...);
$('.page').off('click',...);
but in Angular way. And I don't want to use ng-Click
with some conditions because most of the time the click should not work, it is just for error handling. Is it possible or I need to user pure js/jQuery?
Panel HTML:
<div class="alert error" ng-show="errorMessage">
<div class="alert-text">{{ errorMessage }}</div>
</div>