From 5c91ba5de24753de176093fcf05db64580ad8340 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 8 Jan 2013 00:15:00 +0100 Subject: [PATCH 1/1] rename registration finished to confirmation --- app/js/app.js | 2 +- app/js/controllers.js | 2 +- app/partials/{registration-finished.html => confirmation.html} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename app/partials/{registration-finished.html => confirmation.html} (100%) diff --git a/app/js/app.js b/app/js/app.js index 523743e..5938a2b 100644 --- a/app/js/app.js +++ b/app/js/app.js @@ -5,7 +5,7 @@ angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']). config(['$routeProvider', function($routeProvider) { $routeProvider.when('/registration/:registrationId', {templateUrl: 'partials/registration.html', controller: RegistrationCtrl}); - $routeProvider.when('/registration-finished/:registrationId', {templateUrl: 'partials/registration-finished.html', controller: RegistrationCtrl}); + $routeProvider.when('/confirmation/:registrationId', {templateUrl: 'partials/confirmation.html', controller: RegistrationCtrl}); $routeProvider.when('/list', {templateUrl: 'partials/list.html', controller: ListCtrl}); $routeProvider.when('/view2', {templateUrl: 'partials/partial2.html', controller: MyCtrl2}); $routeProvider.otherwise({redirectTo: '/registration/'}); diff --git a/app/js/controllers.js b/app/js/controllers.js index 1b0d4f8..f0e6d03 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -19,7 +19,7 @@ function RegistrationCtrl($scope, $log, Registration, $routeParams, $location, $ $log.info("saved", registration); $log.info('id =', registration.id); if ( registration.id ) { - $location.path( '/registration-finished/' + registration.id ); + $location.path( '/confirmation/' + registration.id ); } else { $log.error("can't find id in ", registration); } diff --git a/app/partials/registration-finished.html b/app/partials/confirmation.html similarity index 100% rename from app/partials/registration-finished.html rename to app/partials/confirmation.html -- 2.20.1