AngularJS の部分:
myApp.config(['$routeProvider','$locationProvider',function($routeProvider,$locationProvider) {
$routeProvider.
when('/main', {templateUrl: 'sub/main.tpl', controller: MainCtrl}).
when('/users', {templateUrl: 'sub/users.tpl', controller: UserCtrl}).
otherwise({redirectTo: '/main'});
}]);
そして私のindex.html
<a href="#/main">Main</a> | <a href="#/users">Display Users</a>
<div ng-view></div>
うまく機能しますが、ハッシュに問題があります。
アンカーを使用しようとすると、次のようになります。
<a href="#test">test</a>
このアンカーをクリックすると、メイン ページが呼び出されます。
ng-view を使用するときにハッシュを取り除くことは可能ですか?