I\'m trying to set an input alias in a directive following this example
@Input(\'appAvatarColor\') name: string;
The program is working, but
You should rename @Input('appAvatarColor') name: string; to something else for this to differ from the directive name. You can do @Input('avatarColor') name: string; and then simplify it by @Input() avatarColor: string;
@Input('appAvatarColor') name: string;
@Input('avatarColor') name: string;
@Input() avatarColor: string;