Maybe a trivial question but I've not been able to find any answer googling around.
In my Angular 5 app I've HTML like this:
<button mat-raised-button color="accent" class="submit-button" aria-label="{{'REGISTER.CREATE' | translate}}"
[disabled]="registerForm.invalid">
{{'REGISTER.CREATE' | translate}}
</button>
which produces the following error:
Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'aria-label' since it isn't a known property of 'button'. (" </div>
<button mat-raised-button color="accent" class="submit-button" [ERROR ->]aria-label="{{'REGISTER.CREATE' | translate}}"
[disabled]="registerForm.inval"): ng:///Register2Module/FuseRegister2Component.html@76:79
syntaxError
But if I write:
<button mat-raised-button color="accent" class="submit-button" aria-label="SOME DIRECT TEXT"
[disabled]="registerForm.invalid">
{{'REGISTER.CREATE' | translate}}
</button>
I have no error at all.
This is beyond my understanding. Is this a problem with angular's implementations of Google's MAT or am I missing something?
Thank you in advance
{{ }}
and just'REGISTER.CREATE' | translate
– Interspaceattr.aria-label="{{'REGISTER.CREATE' | translate}}"
– Interspace