fix(ivy): fix a couple issues with Input/Output compilation (#24862)
PR Close #24862
This commit is contained in:
		
							parent
							
								
									9644873023
								
							
						
					
					
						commit
						6eb6ac7c12
					
				| @ -80,17 +80,19 @@ export function extractDirectiveMetadata( | ||||
|   const decoratedElements = | ||||
|       members.filter(member => !member.isStatic && member.decorators !== null); | ||||
| 
 | ||||
|   const coreModule = isCore ? undefined : '@angular/core'; | ||||
| 
 | ||||
|   // Construct the map of inputs both from the @Directive/@Component
 | ||||
|   // decorator, and the decorated
 | ||||
|   // fields.
 | ||||
|   const inputsFromMeta = parseFieldToPropertyMapping(directive, 'inputs', checker); | ||||
|   const inputsFromFields = parseDecoratedFields( | ||||
|       filterToMembersWithDecorator(decoratedElements, 'Input', '@angular/core'), checker); | ||||
|       filterToMembersWithDecorator(decoratedElements, 'Input', coreModule), checker); | ||||
| 
 | ||||
|   // And outputs.
 | ||||
|   const outputsFromMeta = parseFieldToPropertyMapping(directive, 'outputs', checker); | ||||
|   const outputsFromFields = parseDecoratedFields( | ||||
|       filterToMembersWithDecorator(decoratedElements, '@angular/core', 'Output'), checker); | ||||
|       filterToMembersWithDecorator(decoratedElements, 'Output', coreModule), checker); | ||||
| 
 | ||||
|   // Parse the selector.
 | ||||
|   let selector = ''; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user