@ViewChildren and retrive divs span value

6 views
Skip to first unread message

Dev C

unread,
Sep 18, 2019, 2:49:15 AM9/18/19
to ang...@googlegroups.com
Hello I am having below code

@ViewChildren('name') names: QueryList<ElementRed>

In html i have code as from where in i would like to focus on  item having name as value which user types in and select from the search box.

<div class="list-card" #dataw *ngFor= let dats of listName; let i = index>
<div class ="list-item"><span class="list-name">
{{data.name}}</span></div></div>




--
Sent from my mi note 4 phone.
Reply all
Reply to author
Forward
0 new messages