Angular will only work inside ng-view, once you start using routing.
I have only this on the content page:
// links to cdn, js, css <body> <div id="app-container" ng-app="dashboard" ng-view></div> </body>
All partial elements are displayed inside the div.
All partial parts include partial navigation at the very top:
<div ng-include src="'html/navigation.html'"></div>
navigation.html has its own controller:
<div id="nav-bars-container" ng-controller="NavCtrl"> <a href="#/{{course.id}}">Foo</a> </div>
& thus has its own reach. Others may be introduced:
function NavCtrl($scope, $route, $routeParams) { console.log($routeParams); $scope.course.id = $routeParams.id; }
Foo l source share