pageRouteInit.push(function ($routeProvider, $locationProvider) { $routeProvider.when('/example-ui', { template: '<div><h2>Example UI Index</h2><p>Welcome make yourself at home.</p></div>', controller: PageIndex }); }); function PageIndex($scope, $http) { }