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