fix(ivy): ensure factory statements are emitted correctly (#25425)

A small bug caused base factory variable statements for @Component to
not be emitted properly. At the same time as this is fixed, those
statements are now emitted as const.

PR Close #25425
This commit is contained in:
Alex Rickabaugh
2018-08-10 11:26:41 +01:00
committed by Ben Lesh
parent 82e2725154
commit b40c437379
2 changed files with 5 additions and 4 deletions

View File

@ -165,7 +165,7 @@ export class ComponentDecoratorHandler implements DecoratorHandler<R3ComponentMe
return {
name: 'ngComponentDef',
initializer: res.expression,
statements: [],
statements: res.statements,
type: res.type,
};
}