Here is a Plunker link http://plnkr.co/edit/XVCtNX29hFfXtvREYtVF?p=preview that I have prepared. In this example, I've asked you to:
1. Enter something in the input field.
2. Click directly on the button without interacting with any other element.
element.on('click',function(){
scope.clicked=true;
scope.$apply();
})
My question is why isn't the onClick function being called? I am aware that I used element.on('click',...), as ng-click cannot be utilized in this scenario. Please refrain from asking why I can't use ng-click here.
Any suggestions or insights on why this behavior occurs are welcome.