Even though the component is entirely in the hands of the programmer and can be changed by them, I think that the template the programmer receives should have easy capability to add class.
Personal note: If you intend to use a private variable, it's preferable to use the #privateVar syntax instead of prefixing it with _.
I would be willing to submit a PR to fix this issue
@goetzrobin, firstly, thank you for the project; it appears to hold significant potential. I aim to incorporate it into all of my clients' projects.
I'd like to point out that when you mark
_userClass
asprivate
, the host component cannot possess theclass
property.It raises an error:
Property '_userClass' is private and can only be accessed within the 'HlmAccordionDirective' class.
HlmAccordionDirective
Even though the component is entirely in the hands of the programmer and can be changed by them, I think that the template the programmer receives should have easy capability to add class.
Personal note: If you intend to use a private variable, it's preferable to use the #privateVar syntax instead of prefixing it with _.
I would be willing to submit a PR to fix this issue