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