TypeScript Error While Using @Input()
It's styleguide, no-input-rename
the rule that you should set to false not to get such tslint error. no-input-rename
is set to true
usually when you generate your project with Angular CLI. Go to your tslint file and make it's value equal to false
. Should look something like: "no-input-rename": false
.
@Input() inputProducts: Product[];
should fix your problem.