Zack Birkenbuel ea1968317e fix(router): update getRouteGuards to check if the context outlet is activated ()
In certain circumstances (errors during component constructor) the router outlet may not be activated before
redirecting to a new route. If the new route requires running guards and resolvers the current logic will throw
when accessing outlet.component due to an isActivated check within the property getter.  This update brings the
logic inline with deactivateRouterAndItsChildren, namely checking outlet.isActivated before trying to access
outlet.component.

Fixes 

PR Close 
2020-09-30 14:58:47 -07:00
..