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