Upon starting my application, it automatically opens the following URL: http://localhost:8080/#/
. I am attempting to have it open this URL instead: http://localhost:8080/
when the application loads, but I haven't been successful in doing so.
I am using AngularJS and $routeProvider
to load content based on the URL. Unfortunately, I'm not entirely clear on how it functions and the documentation is not providing me with a clear explanation. Below is the code snippet:
'use strict';
angular.module('login', ['login.filters', 'login.services', 'login.directives', 'login.controllers']).
config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/', {templateUrl: 'partials/partial1.html', controller: 'MyCtrl1'});
$routeProvider.otherwise({redirectTo: '/'});
}]);
Could you please assist me in identifying any unwanted '#' characters?