이것이 내 경로 설정 인 경우 "/ inbound? page = 0 & 크기 = 20 & sort = number, desc"로 리디렉션되는 "otherwise"경로를 원하지만 경로의 "?"는 (으)로 이스케이프됩니다. "% 3 층".AngularJS 경로에서 기본 쿼리 매개 변수를 추가 할 수 있습니까?
.config(function ($routeProvider) {
$routeProvider
.when('/outbound', {
templateUrl: 'views/shipments.html',
controller: 'ShipmentCtrl'
})
.when('/inbound', {
templateUrl: 'views/receipts.html',
controller: 'ReceiptsCtrl'
})
.otherwise({
redirectTo: '/inbound'
});
});
이 참으로가는 방법이었다 :) 주셔서 감사합니다 . –