I am using JStree and it uses Jquery. I have a bootstrap modal to be shown on performing some action in JStree like check/uncheck on a node. I have the modal hidden using `ng-show="showonclickinJStree"` `id="showonclickinJStree"`. 

If I set `$scope.showonclickinJStree = true` within the jquery function, it doesn't work. The modal is not displayed. 
Only if I use `$('#showonclickinJStree').modal('show');` the modal shows up.

May I know why? Is it not allowed to use AngularJS definitions within Jquery functions?

I know it is not advisable to use 2 different approaches. But just to know how it supports.