import { Component, ViewChild } from \'@angular/core\'; @Component({ selector: \'my-app\', template: ` para 1 相关标签:
para 1
You can try the following to get array of p elements:
p
Array.from(this.myDiv.nativeElement.children).filter(tag => tag.tagName === 'P')