$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,URL应该改变(axeample在和URL的加1),但页面应该留在同样,没有任何更改和重新加载。怎么做?由于角:为同一控制器
你正在做的网址错的,如果你想改变的路径,但不能加载一个新的页面或一些新的内容... – callmekatootie
你为什么要这样的功能?当然,有更好的方法来做任何你想做的事情... – callmekatootie
因为我需要当你点击按钮“返回”时,我需要在同一页面上返回,但要获得页面的以前状态。 – Simcha