'use strict'; tcrudUI.controller('ApplicationController',function($scope,$http,$location,navigationService) { console.log('start menu controller'); $scope.goLink = function ( path ) { $location.path( path ); }; $scope.navigationService = navigationService; $scope.applicationMenu = {}; $http.get('<%= troot.tmeta.tserver.tslugs.tbase %>/<%= troot.tmeta.tserver.tslugs.tserver %>/config/menu').success(function(data, status, headers, config) { $scope.applicationMenu = data.data; $scope.applicationMenuKeys = Object.keys(data.data); }); });