parent
							
								
									055282f156
								
							
						
					
					
						commit
						73f017bad9
					
				| @ -400,7 +400,9 @@ class PreActivation { | |||||||
|           if (s instanceof CanActivate) { |           if (s instanceof CanActivate) { | ||||||
|             return this.runCanActivate(s.route); |             return this.runCanActivate(s.route); | ||||||
|           } else if (s instanceof CanDeactivate) { |           } else if (s instanceof CanDeactivate) { | ||||||
|             return this.runCanDeactivate(s.component, s.route); |             // workaround https://github.com/Microsoft/TypeScript/issues/7271
 | ||||||
|  |             const s2 = s as CanDeactivate; | ||||||
|  |             return this.runCanDeactivate(s2.component, s2.route); | ||||||
|           } else { |           } else { | ||||||
|             throw new Error('Cannot be reached'); |             throw new Error('Cannot be reached'); | ||||||
|           } |           } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user