title: Angularjs : $locationProvider.hashPrefix("!") ;
body: <p>I  want to show url as "www.test.com/!#" for that i am using $locationProvider.hashPrefix("!") ; but it shows url as "www.test.com/#!" . i want "!" before hash not after hash.</p>
  
  <p>Thanks</p>
  
  <pre><code>var app = angular.module('app', []);
  app.config(function ($routeProvider, $locationProvider) {
      $locationProvider.html5Mode(false);
      $locationProvider.hashPrefix("!");
      $routeProvider.when('/', {
          templateUrl: "app.html",
          controller: "AppCtrl"
      }
  
      )
          .when('/Program', {
          templateUrl: "detail1.html",
          controller: "Redirect"
      })
          .when('/Program/123456/channel/78458585',
  
      {
          templateUrl: "details.html",
          controller: "Detail"
      });
  });
  
  
  
  app.controller("AppCtrl", function ($scope) {
  
  });
  
  app.controller("Detail", function ($scope, $location) {
  
  });
  
  app.controller("Redirect", function ($scope, $location) {
      $location.path("/Program/123456/channel/78458585")
  });
  </code></pre>