I\'ve set up my controllers using data-ng-controller=\"xyzController as vm\"
data-ng-controller=\"xyzController as vm\"
I have a scenario with parent / child nested controllers. I have no problem
Super easy and works, but not sure why....
angular.module('testing') .directive('details', function () { return { templateUrl: 'components/details.template.html', restrict: 'E', controller: function ($scope) { $scope.details=$scope.details; <=== can see the parent details doing this } }; });