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