mercredi 27 novembre 2019

angular test get child component

<app-component>
<app-image [src]="example.svg"></app-image>
</app-component>

app.component.ts

<div>
<p>Some text</p>
<ng-content></ng-content>
</div>

How can I get app-image element or src value?

Aucun commentaire:

Enregistrer un commentaire