I have defined an expression in ng-init
which is being evaluated to false but when I assign it to a variable, its being evaluated to true.
<div class="small-6 medium-6 large-6 cell" ng-init="disablePMPR = !((roleControl.disableBlock) && (roleControl.block == 1) && (roleControl.userRole == 'PMPR'))">
This expression is evaluated to false, which is correct ==>
!((roleControl.disableBlock) && (roleControl.block == 1) && (roleControl.userRole == 'PMPR'))
But disablePMPR is evaluated to true. Is there other way to define this expression ?