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 =
|
const decoratedElements =
|
||||||
members.filter(member => !member.isStatic && member.decorators !== null);
|
members.filter(member => !member.isStatic && member.decorators !== null);
|
||||||
|
|
||||||
|
const coreModule = isCore ? undefined : '@angular/core';
|
||||||
|
|
||||||
// Construct the map of inputs both from the @Directive/@Component
|
// Construct the map of inputs both from the @Directive/@Component
|
||||||
// decorator, and the decorated
|
// decorator, and the decorated
|
||||||
// fields.
|
// fields.
|
||||||
const inputsFromMeta = parseFieldToPropertyMapping(directive, 'inputs', checker);
|
const inputsFromMeta = parseFieldToPropertyMapping(directive, 'inputs', checker);
|
||||||
const inputsFromFields = parseDecoratedFields(
|
const inputsFromFields = parseDecoratedFields(
|
||||||
filterToMembersWithDecorator(decoratedElements, 'Input', '@angular/core'), checker);
|
filterToMembersWithDecorator(decoratedElements, 'Input', coreModule), checker);
|
||||||
|
|
||||||
// And outputs.
|
// And outputs.
|
||||||
const outputsFromMeta = parseFieldToPropertyMapping(directive, 'outputs', checker);
|
const outputsFromMeta = parseFieldToPropertyMapping(directive, 'outputs', checker);
|
||||||
const outputsFromFields = parseDecoratedFields(
|
const outputsFromFields = parseDecoratedFields(
|
||||||
filterToMembersWithDecorator(decoratedElements, '@angular/core', 'Output'), checker);
|
filterToMembersWithDecorator(decoratedElements, 'Output', coreModule), checker);
|
||||||
|
|
||||||
// Parse the selector.
|
// Parse the selector.
|
||||||
let selector = '';
|
let selector = '';
|
||||||
|
|
Loading…
Reference in New Issue