I have a component on which I specify the angular i18in attribute like this:
<app-text i18n="meaning|description"> DeveloperText</app-text>
I want to be able to read this property. I have tried using ElementRef and accessing nativeElement but the attribute i18n is not a part of the DOM element when I view the source. When my app is launched the DOM looks like this:
<app-text _ngcontent-c0=""> DeveloperText</app-text>
So can I somehow read properties like this using the Angular Framework?
i18n is a custom attribute, recognized by Angular tools and compilers. After translation, the compiler removes it. It is not an Angular directive.