0
$routeProvider.
    when('/:placeId', {templateUrl: 'client/partials/menu.html', controller: MenuCtrl}).
    when('/look/refill', {templateUrl: 'client/partials/refill.html', controller: RefillCtrl}).
    when('/look/orderCart', {templateUrl: 'client/partials/orderCart.html', controller: OrderCartCtrl}).
    otherwise({redirectTo: '/0'});
}]).

我需要在第一页上添加链接,当您单击它时,应该更改 URL(对于 axeample 在 URL 的和中添加 1)但页面应该保持不变,没有任何更改和重新加载。怎么做?谢谢

4

1 回答 1

0

认为这就是你想要的

when('/:placeId', {templateUrl: 'client/partials/menu.html', controller: MenuCtrl, reloadOnSearch: false})
于 2013-06-30T14:10:12.077 回答