I need to add some classes to host component conditionally. it's simple: add:
@HostBinding('class.app-ltr') isLTR: boolean = true;
and change isLTR in the code;
but suppose I need 10 5 or 6 classes, then I need to add to all project components, it cause duplicated code.
what can I do?
I tried to create directive and append to component host, but this feature is not exist.
then I tried to create base component, but parent component doesn't effect.
then I tried to create custom decorator, but not success.
what is best practice?