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