FIDDLE
I have created a directive :-
return { restrict: \'EAC\', scope: { statesActive: \'=\' },
Try using this to access your scope.
return { ... link: function (scope, element, attrs) { .... scope.$parent.$parent.YourVariable; } };
And I think you need to change your HTML to this: