A
A
Alex Krynytskyi2020-09-16 17:46:23
Angular
Alex Krynytskyi, 2020-09-16 17:46:23

How to access an array of house elements?

Interested in how to reach the elements
In Angular, as in normal JS, we do this
Through QuerySelectorAll

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikita Mikhailov, 2020-09-16
@Psixodelik

So, well, if

how in normal JS we do it Via QuerySelectorAll

then what's the problem?

A
Alexander, 2020-09-16
@Alexandre888

What's the problem? get an array of all elements, then just get any with [index]
var list = document.querySelectorAll("тег");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question