새로운 경로로 이동할 수없고 동시에 콘센트/보조 경로를 지울 수없는 문제가 있습니다.각도 보조 경로 - 동일한 탐색 호출에서 보조 경로를 탐색하고 지울 수 없습니까?
두 작업을 별도로 호출하면 작동하지만 해결 방법처럼 느껴집니다. 두 통화로해야하는 이유가 있습니까? 아니면 구현에 오류가 있습니까? 아니면 GitHub 문제로 제출해야합니까? 독립적으로
이 작업 :
// Navigate to `/second`
this._router.navigate(['/second']);
// Clears the `popup` outlet
this._router.navigate(['', {outlets: { popup: null }}]);
나는이 일을해야한다고 생각하지만, 콘센트 취소하지 않습니다
이this._router.navigate(['/second', {outlets: { popup: null }}]);
나의 현재 작업-주위 :
this._router.navigate(['', {outlets: { popup: null }}]).then(() => { this._router.navigate(['second']); });
을
plnkr proof of concept - 내비게이션 코드를 만들었습니다. global-popup.component.ts
답변으로 문제가 해결 되었습니까? –