Skip to content

Commit f42fc69

Browse files
committed
fix(app): @input/@ouput not duplicated with properties
fix #1095
1 parent f324108 commit f42fc69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/compiler/angular/deps/helpers/class-helper.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,9 @@ export class ClassHelper {
721721
ts.isPropertyDeclaration(member) ||
722722
ts.isPropertySignature(member)
723723
) {
724-
properties.push(this.visitProperty(member, sourceFile));
724+
if (!inputDecorator && !outputDecorator) {
725+
properties.push(this.visitProperty(member, sourceFile));
726+
}
725727
} else if (ts.isCallSignatureDeclaration(member)) {
726728
properties.push(this.visitCallDeclaration(member, sourceFile));
727729
} else if (

0 commit comments

Comments
 (0)