I have a partial that I construct like this
<my-partial attr1="some text" attr2="some other text">
   <div ng-show="displayBool">
      <div>{{attr1}}</div>
      <div>{{attr2}}</div>
      <button ng-click="changeBool()">Change var</button>
</my-partial>
which renders
   <div>some text</div>
   <div>some other text</div>
In the controller I set $scope.displayBool = true. And the directive looks like this:
angular.module('grasshopperApp')
    .directive('myPartial', function () {
        return {
            restrict: 'EA',
            scope: {
                displayBool: '=',
                attr1: '@'
                attr2: '@'
            },
            templateUrl: '../my.html'
        };
    });
displayBool does not come through in the directive and the div is never shown, yet the attribute values display correctly when I inspect the hidden element in the developer panel. Why is this? How can I make that value come through?
 
     
     
    