I am having an Angular component with a single @Input element:
@Input('member') member: Member;
the Member interface looks like this:
export interface Member {
name: string;
surname: string;
display_name: string;
positions: number[];
image_url: string;
email: string;
address: string;
office_phone: string;
phone: string;
whatsapp: string;
skype: string;
}
I want to access the member fields from html template like {{ name }}, {{ email }} etc...
wtihout prefixing each of them.
For example, I do not want to access these properties like {{ member.name }}, {{ member.email }}, I like the shortcut version.
The component will have only a single @Inpurt property - the Member object.
Is there a nice way to reassign the member. properties to the Angular component? Or any other way to use a shortcut, I mensioned above?