I am trying to create a Nav Tab from a loop with NgFor in Angular 7+ but when I try to bind the aria-controls property it always gives me error, attached code and error.
CODE
<a *ngFor="let video of videos; let i = index"
[ngClass]="{active: i == 0}"
class="nav-link"
id="programación-horaria-tab"
data-toggle="pill"
href="#programación-horaria"
role="tab"
aria-controls="{{video.name}}"
aria-selected="false">Programación horaria</a>
ERROR
Can not bind to 'aria-controls' since it is not a known property of 'a'. ("href=" # schedule-time " role="tab" [ERROR - >] aria-controls="{{video.name}}" aria-selected="false" > Time schedule) at JitCompiler.push ../ node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js: 25787) at compiler.js: 25697 at Object.then (compiler.js: 2418) at JitCompiler.push ../ node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js: 25696)
If I try to add another way, the same code will happen to me.
CODE
<a *ngFor="let video of videos; let i = index"
[ngClass]="{active: i == 0}"
class="nav-link"
id="programación-horaria-tab"
data-toggle="pill"
href="#programación-horaria"
role="tab"
[aria-controls]="video.name"
aria-selected="false">Programación horaria</a>
ERROR
Can not bind to 'aria-controls' since it is not a known property of 'a'. ("href=" # schedule-time " role="tab" [ERROR - >] [aria-controls]="video.name" aria-selected="false" > Time Programming "): ng: ///AppModule/ProductComponent.html@58: 24 at syntaxError (compiler.js: 2427) at TemplateParser.push ../ node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js: 20311) at JitCompiler.push ../ node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js: 25857) at JitCompiler.push ../ node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js: 25844) at compiler.js: 25787 at Set.forEach () at JitCompiler.push ../ node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js: 25787) at compiler.js: 25697 at Object.then (compiler.js: 2418) at JitCompiler.push ../ node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js: 25696)