Category: AngularJS

  • Removing the fragment identifier ‘#’ from Angular JS url.

    Removing the fragment identifier ‘#’ from Angular JS url.

    Angular JS routing without ‘#’ is possible as ‘#’ is not required in modern browsers, that support the Html5 API. First of all, you need to create a .htaccess file, then add it to the code below.Two important things need to be done. 1. Configuration of $location provider.2. Setting/Add base for relative links. app.config(function($routeProvider,$locationProvider) { […]