pageRouteInit.push(function ($routeProvider, $locationProvider) { $routeProvider.when('/example-ui/foo', { template: '

Foo

Welcome to the foo.

', controller: PageFoo }); }); function PageFoo($scope, $http) { }