pageRouteInit.push(function ($routeProvider, $locationProvider) { $routeProvider.when('/example-ui/bar', { templateUrl: '/example-ui/include/bar', controller: PageFoo }); }); function PageFoo($scope, $http) { }