title: $location.path in Angular JS is not working
body: <p>I know this question has been asked many times and after going through the replies and making the changes in my code I am still not able to open a different page by pressing a button. I just started with Angular JS, so can anyone please help me with the same ? 
  <strong>(The address in the url changes but the page is not displayed)</strong></p>
  
  <p>CODE:</p>
  
  <hr>
  
  <p>Index.html</p>
  
  <hr>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html  ng-app="testAngularApp" class="no-js"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;&lt;/title&gt;
  
    &lt;/head&gt;
    &lt;body&gt;
  
      &lt;!-- Add your site or application content here --&gt;
        &lt;div ng-controller="MainCtrl"&gt;
              &lt;button ng-click="testButton()"&gt; Page Change&lt;/button&gt;
        &lt;/div&gt;
  
      &lt;script src="bower_components/angular/angular.js"&gt;&lt;/script&gt;
      &lt;!-- endbower --&gt;
      &lt;!-- endbuild --&gt;
  
          &lt;script src="scripts/app.js"&gt;&lt;/script&gt;
          &lt;script src="scripts/controllers/main.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <hr>
  
  <p>app.js</p>
  
  <hr>
  
  <pre><code>'use strict';
  
  /**
   *
   * Main module of the application.
   */
  angular
    .module('testAngularApp', [])
    .config(function($locationProvider){
          $locationProvider.html5Mode(true);
      });
  </code></pre>
  
  <hr>
  
  <p>main.js</p>
  
  <hr>
  
  <pre><code>'use strict';
  
  /**
   * @ngdoc function
   * @name testAngularApp.controller:MainCtrl
   * @description
   * # MainCtrl
   * Controller of the testAngularApp
   */
  angular.module('testAngularApp')
    .controller('MainCtrl', function ($timeout, $log, $location, $scope) {
      $scope.testButton = function(){
  
          // Testing the opening of different page.
          $log.info($location.path());
          $timeout(function () {
              $location.path('/views/Dummy.html');
          });
  
      };
    });
  </code></pre>
  
  <p>Thanks and Regards,</p>