There are not any problem to take attributes value in the following case:
<object class="someClass" someAttribute="someValue"></object>
const elem = fixture.debugElement.query(By.css('.someClass')).nativeElement;
elem.getAttribute('someAttribute');
But how to take attributes value in this case?
<object class="someClass" [someAttribute]="someValue"></object>
Aucun commentaire:
Enregistrer un commentaire