fix(compiler): generate inputs with aliases properly (#26774)

PR Close #26774
This commit is contained in:
Kara Erickson
2018-10-25 23:05:15 -07:00
committed by Matias Niemelä
parent c048358cf9
commit 19fcfc3d00
10 changed files with 69 additions and 24 deletions

View File

@ -1887,7 +1887,7 @@ describe('compiler compliance', () => {
type: LifecycleComp,
selectors: [["lifecycle-comp"]],
factory: function LifecycleComp_Factory(t) { return new (t || LifecycleComp)(); },
inputs: {nameMin: "name"},
inputs: {nameMin: ["name", "nameMin"]},
features: [$r3$.ɵNgOnChangesFeature],
consts: 0,
vars: 0,
@ -2301,7 +2301,7 @@ describe('compiler compliance', () => {
});
});
describe('inherited bare classes', () => {
describe('inherited base classes', () => {
it('should add ngBaseDef if one or more @Input is present', () => {
const files = {
app: {

View File

@ -56,7 +56,7 @@ describe('compiler compliance: listen()', () => {
inputs:{
componentInput: "componentInput",
originalComponentInput: "renamedComponentInput"
originalComponentInput: ["renamedComponentInput", "originalComponentInput"]
},
outputs: {
componentOutput: "componentOutput",
@ -70,7 +70,7 @@ describe('compiler compliance: listen()', () => {
inputs:{
directiveInput: "directiveInput",
originalDirectiveInput: "renamedDirectiveInput"
originalDirectiveInput: ["renamedDirectiveInput", "originalDirectiveInput"]
},
outputs: {
directiveOutput: "directiveOutput",
@ -86,4 +86,4 @@ describe('compiler compliance: listen()', () => {
expectEmit(result.source, directiveDef, 'Incorrect directive definition');
});
});
});