https://www.jianshu.com/p/bb291f9678e1 It should be avoided while working with angular because angular has its own ChangeDetection which requires it to be worked with fixtures. var select = document.querySelector . Well it depends of how sophisticated your project is. A NodeList is most often a static collection. Example: If you add a
with "banner works! The first match of those remaining elements is querySelector , dispatchEvent. The querySelector() method of the Element occur. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. My Answer is inspired from yurzui's answer here. In this first example, the first