// ng routing
@@ -6,8 +6,833 @@
  routing
+%0Aapp.config(function($routeProvider, $locationProvider) %7B%0A%09$routeProvider%0A%0A%09// route for the home page%0A%09%09.when('/', %7B%0A%09%09%09controller  : 'homeController',%0A%09%09%09templateUrl : 'angular/templates/home-template.php'%0A%09%09%7D)%0A%0A%09%09// route for the portfolio page%0A%09%09.when('/portfolio', %7B%0A%09%09%09controller  : 'portfolioController',%0A%09%09%09templateUrl : 'angular/templates/portfolio-template.php'%0A%09%09%7D)%0A%0A%09%09// route for the about page%0A%09%09.when('/about', %7B%0A%09%09%09controller  : 'aboutController',%0A%09%09%09templateUrl : 'angular/templates/about-template.php'%0A%09%09%7D)%0A%0A%09%09// route for the contact page%0A%09%09.when('/contact', %7B%0A%09%09%09controller  : 'contactController',%0A%09%09%09templateUrl : 'angular/templates/contact-template.php'%0A%09%09%7D)%0A%0A%09%09// otherwise redirect to home%0A%09%09.otherwise(%7B%0A%09%09%09redirectTo: '/'%0A%09%09%7D);%0A%0A%09//use the HTML5 History API%0A%0A%09$locationProvider.html5Mode(true);%0A%0A%7D);

configure routes