Angularjs route configuration:-
          
              1.
Right click on the Scripts folder and add a new JavaScript file. Name it script.js. Copy and paste the following code. 
 
 
///  
 
 
2. Changes to index.html
              
1. Add a reference to the script.js file in the layout template i.e index.html.
              
2. Set ng-app="Demo" on the root html element
              
At this point, depending on the URL, the respective partial template will be injected into the layout template in the location where we have ng-view directive. For example if you have index.html#/home, then home.html is injected into index.html. Similarly if you are on index.html#/courses, then course.html is injected into index.html.
          
       
         
          
         
      2. Changes to index.html
1. Add a reference to the script.js file in the layout template i.e index.html.
                  <script src="Scripts/script.js"></script>
              
              2. Set ng-app="Demo" on the root html element
                  <html xmlns="http://www.w3.org/1999/xhtml" ng-app="Demo">
              
              At this point, depending on the URL, the respective partial template will be injected into the layout template in the location where we have ng-view directive. For example if you have index.html#/home, then home.html is injected into index.html. Similarly if you are on index.html#/courses, then course.html is injected into index.html.