Lines Matching full:scope
9 'scope': {'path': '=', 'showNavigation': '='},
11 '$scope', '$location', 'dataService',
12 function($scope, $location, dataService) {
13 $scope.showHealthMenu = false;
14 $scope.showControlMenu = false;
15 $scope.showConfigMenu = false;
16 $scope.showAccessMenu = false;
17 $scope.dataService = dataService;
19 $scope.change = function(firstLevel) {
22 $scope.showHealthMenu = !$scope.showHealthMenu;
25 $scope.showControlMenu = !$scope.showControlMenu;
28 $scope.showConfigMenu = !$scope.showConfigMenu;
31 $scope.showAccessMenu = !$scope.showAccessMenu;
38 $scope.$watch('path', function() {
41 $scope.firstLevel = urlRoot;
43 $scope.firstLevel = 'overview';
45 $scope.showSubMenu = true;
47 $scope.$watch('showNavigation', function() {
50 $scope.firstLevel = urlRoot;
52 $scope.firstLevel = 'overview';
57 link: function(scope, element, attributes) {
62 if (scope.showSubMenu) {
63 scope.$apply(function() {
64 scope.showSubMenu = true;