There is a pattern:
<div ng-app='Test'> <root-dir> <menu-dir></menu-dir> </root-dir> </div> How to get data from root-dir in menu-dir? There is no data parameter in the console.
angular.module('Test', []); angular.module('Test') .directive('rootDir', function () { return { scope: {}, restrict: 'E', controller: function ($scope) { $scope.data = [ 'main', 'about' ]; } } }) .directive('menuDir', function () { return { scope: false, controller: function($scope) { console.log($scope); } } });