.config(function($routeProvider) { $routeProvider .when('/:feed_term', { templateUrl: 'views/feedlist.html', controller: 'searchtermCtrl' }) .otherwise({redirectTo: '/term/'}); }) /* CONTROLLERS */ // Navigation - Controller // .controller('NavigationCtrl', function ($scope, $routeParams) { $scope.activeTab = $routeParams.feedterm // Trying to target the navigation within the Navigation Controller, when it is not in ng-view }) // Search Term - Controller .controller('searchtermCtrl', function($scope, Feed, $routeParams){ $scope.feed = Feed.query({ feed : $routeParams.feed_term }); $scope.activeTab = $routeParams.feed_term // Works with added classes for specified items for active tab within ng-view }) ***HTML***
<-- Body -->