I'm using AngularJS 1.3. my project url is http://localhost/MyProject/app/#/index.html I want to open index.html at url http://localhost/MyProject/index.html How can i do this? can anyone help? thanks
angular.module('myapp').config(['$stateProvider', '$urlRouterProvider', '$httpProvider', '$locationProvider', function ($stateProvider, $urlRouterProvider, $httpProvider, $locationProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider.state('index', {
url: '/',
controller: 'homeController',
templateUrl: 'templates/home_page.html'
}) $locationProvider.html5Mode(true);
}]);
if I use
<base href="index.html">
In the place of <base href="/">
then page half load with many insecure type error.