I have created a test located on plunker at this address: Full example on plunker
Here is the child controller which works:
  child.directive('child', function(){
    return{
      restrict:'E',
      templateUrl: 'child.html',
      link: function(){},
      controller:['$scope', function($scope){
        this.inherited = $scope.test;
        this.local = "child";
      }],
      controllerAs:'child'
    };
  });
I am expecting the controller located in child.js to be a child controller of the controller in script.js. This would mean that if I want to access a variable added to the scope of parent controller from the child controller, I would need to access it using $scope.$parent. Can someone explain why these are the same scope?
 
     
     
     
    