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