I'm trying to set an input alias in a directive following this example
@Input('appAvatarColor') name: string;
The program is working, but I'm receiving this warning from TS Lint
the directive input property should not be renamed
The directive selector is this
@Directive({
selector: '[appAvatarColor]'
})
Am I doing something wrong?
Why is this considered a bad practice by default?
"no-input-rename": truerule in yourtslint.jsonfileeslintwith Angular. I have added a new answer foreslint