fix(ivy): fix a couple issues with Input/Output compilation (#24862)

PR Close #24862
This commit is contained in:
Alex Rickabaugh 2018-07-11 12:11:19 -07:00 committed by Victor Berchet
parent 9644873023
commit 6eb6ac7c12
1 changed files with 4 additions and 2 deletions

View File

@ -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 = '';