4 // Declare app level module which depends on filters, and services
5 angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).
6 config(['$routeProvider', function($routeProvider) {
7 $routeProvider.when('/registration', {templateUrl: 'partials/registration.html', controller: RegistrationCtrl});
8 $routeProvider.when('/registration/:registrationId', {templateUrl: 'partials/registration.html', controller: RegistrationCtrl});
9 $routeProvider.when('/registration-finished/:registrationId', {templateUrl: 'partials/registration-finished.html', controller: RegistrationCtrl});
10 $routeProvider.when('/list', {templateUrl: 'partials/list.html', controller: ListCtrl});
11 $routeProvider.when('/view2', {templateUrl: 'partials/partial2.html', controller: MyCtrl2});
12 $routeProvider.otherwise({redirectTo: '/registration'});