1 <button class="btn btn-primary btn-lg dropdown-toggle" type="button"
2 (click)="toggleDropdown($event)"
3 aria-haspopup="true" aria-expanded="false">
4
5 toggleDropdown(event) {
6
7
8
9 var childersns = event.target.parentElement.parentElement.childNodes;
10 // var parent = event.target.parentElement.parentElement;
11
12 console.log(parent);
13
14 for (let i = 0; i < childersns.length; i++) {
15 console.log(childersns[i])
16 if (childersns[i].nodeName == 'DIV') {
17 childersns[i].classList.toggle('hide')
18 childersns[i].classList.toggle('show')
19 }
20 }
21
22
23 }