Say I have this extremely simple TypeScript component:
export class MyComponent {
@bindable ACCESS_MODIFIER myProperty;
}
Is there any kind of best practice about which access modifier (public / protected / private) to use if a property is bindable
and is meant to be used only in:
- the component itself,
- potential inherited classes,
- the relative HTML views via Aurelia’s HTML attributes?
So far I’ve been often using private/protected as - I assume - the TypeScript compiler just drops modifiers, but as Aurelia is meant to use these properties I guess they are not strictly private/protected.