feat(router): add prioritizedGuardValue operator optimization and allowing UrlTree return from guard (#26478)

* If all guards return `true`, operator returns `true`
* `false` and `UrlTree` are now both valid returns from a guard
* Both these values wait for higher priority guards to resolve
* Highest priority `false` or `UrlTree` value will be returned

PR Close #26478
This commit is contained in:
Jason Aden
2018-10-15 10:52:49 -07:00
committed by Misko Hevery
parent 9e5d440a0b
commit fdfedceeec
3 changed files with 235 additions and 0 deletions

View File

@ -16,6 +16,7 @@ ts_library(
"//packages/router/testing",
"@rxjs",
"@rxjs//operators",
"@rxjs//testing",
],
)