'use strict';

/**
 * @ngdoc overview
 * @name clientApp
 * @description
 * # clientApp
 *
 * Main module of the application.
 */
 

var myapp = angular
  .module('myapp', [
 
  ]);
  
  myapp.controller('control123', function($scope) {
            $scope.yourname = "Ankit Awal";
         });
         
         
  // myapp.config(function ($routeProvider) {
  //   $routeProvider
  //     .when('/', {
  //       templateUrl: '/views/main.html',
  //       controller: 'MainCtrl',
  //       controllerAs: 'main'
  //     })
  //     .when('/hey', {
  //       templateUrl: '/views/main.html',
  //       controller: 'MainCtrl',
  //       controllerAs: 'main'
  //     })
  //     .otherwise({
  //       redirectTo: '/'
  //     });
  // });
  
 
  

@@ -1,144 +1,13 @@
-'use strict';%0A%0A/**%0A * @ngdoc overview%0A * @name clientApp%0A * @description%0A * # clientApp%0A *%0A * Main module of the application.%0A */%0A %0A%0Avar mya
+var mainA
 pp =
@@ -18,19 +18,16 @@
 ular
-%0A  
 .module(
 'mya
@@ -26,126 +26,134 @@
 ule(
-'myapp', %5B%0A %0A  %5D);%0A  %0A  myapp.controller('control123', function($scope) %7B%0A            $scope.yourname = %22Ankit Awal%22;%0A
+%22mainApp%22, %5B'ngRoute'%5D);%0A         mainApp.config(%5B'$routeProvider', function($routeProvider) %7B%0A            $routeProvider.%0A   
     
@@ -157,20 +157,20 @@
         
-%7D);%0A
+%0A   
         
@@ -174,113 +174,199 @@
     
-%0A         %0A  // myapp.config(function ($routeProvider) %7B
+when('/addStudent', %7B%0A               templateUrl: 'addStudent.htm',%0A               controller: 'AddStudentController'%0A            %7D).
 %0A  
-//
    
-$routeProvider%0A  //
+       %0A       
      
-.
 when('/
+viewStudents
 ', %7B%0A  
-//
+      
     
@@ -382,39 +382,43 @@
 teUrl: '
-/
 view
-s/main
+Students
 .htm
-l
 ',%0A  
-//
+      
        c
@@ -433,286 +433,512 @@
 r: '
-MainCtrl',
+ViewStudentsController'
 %0A  
-//
        
-controllerAs: 'main'
+   %7D).
 %0A  
-//
      
-%7D)
+     
 %0A  
-//
      
-.when('/hey', 
+     otherwise(
 %7B%0A  
-//
+  
        
-templateUrl: '/views/main.html',%0A  //
+    redirectTo: '/addStudent'%0A            %7D);%0A         %7D%5D);%0A      
    
+%0A
     
-controller: 'MainCtrl',%0A  //       controllerAs: 'main'
+     mainApp.controller('AddStudentController', function($scope) %7B%0A            $scope.message = %22This page will be used to display add student form%22;
 %0A  
-//
      
-%7D)%0A  //     .otherwise(
+  %7D);%0A         %0A         mainApp.controller('ViewStudentsController', function($scope) 
 %7B%0A  
-//
+ 
        
-redirectTo: '/'%0A  //     %7D);%0A  // %7D);%0A  %0A %0A  
+  $scope.message = %22This page will be used to display all the students%22;%0A         %7D);%0A%09%09%09
 %0A

Update app.js