An object variable works because of how prototype JavaScript inheritance works. ngInclude creates its own child region. This child region is prototypically inherited from the parent region.
JavaScript, - $scope.x = 22 , x child $ 22 - , $scope , .
- $scope.someObj.prop1 = 22 , JavaScript someObj child $, , $scope $. someObj $scope, .
, SO ( ): / AngularJS?