This is how I can access the exact scope value, otherwise it will be $scope.type
of local scope.
I am accessing this from the template in NSPopover
. NSPopover
directive has scope: true
.
It's also inside the Angular bootstrap module.
<label ng-class="{selected: $parent.$parent.$parent.type == current.type}" >
<input type="radio" name="type" ng-value="current.type" ng-change="chooseOption()" ng-model="$parent.$parent.$parent.type"/>
...