want to remove # from my angularjs application i have tried $locationProvider, but there is no luck
here is my Config :
var TechdefeatApp = angular.module('TechdefeatApp',['ui.router']);
TechdefeatApp.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider){
$urlRouterProvider.otherwise("/")
$stateProvider
.state('/', {
url: "/",
templateUrl: "app/components/home/homeView.html",
controller:"homeController"
})
.state('post', {
url: "/post/:seo_url",
templateUrl: "app/components/post/postView.html",
controller:"postController"
})
}]);
i am calling a URL using ui-sref:
<a ui-sref="post({seo_url:post.seo_url})" title="{{post.title}}">{{post.title}}</a>
The URL in browser appear like this :
URL : http://jaancari.com/latest/#/post/un-ambassador-nikki-haley
URL : http://jaancari.com/latest/#/post/december-3-1984-bhopal-worst-industrial-accident-in-history