我有angularJS應用程序使用ASP MVC WebAPI。我需要獲取用於重置用戶密碼的代碼。正確的URL編碼爲angularjs路由
我的路線是這樣的
$routeProvider.when("/reset/:token", {
controller: "loginController",
templateUrl: "/app/views/reset-password-confirm.html"
});
我注意到,如果我刪除%路線的作品,但因爲令牌字符串有字符/我必須找到一種編碼方式。 任何方式我可以在ASP MVC webAPI中編碼字符串,以便它在AngularJS中工作?
這個問題已經在這裏回答了:[link](http://stackoverflow.com/questions/16227004/how-to-capture-urls-with-arbitrary-number-of-slashes-in-angular-js) –