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?
question from:
https://stackoverflow.com/questions/44033676/angular-bind-to-an-input-alias 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…