DS
Size: a a a
DS
nt
nt
PT
<div *ngFor="let item of targeting">Почему выдает 0??? Если через инспектор 18пикселей
<app-custom-info class="d-flex align-items-center mr-1" #customInfo >
@ViewChildren('customInfo') components: QueryList<CustomInfoComponent>;
ngAfterViewInit(): void {
this.components.toArray().map( (comp) => {
const height = comp['element'].nativeElement.offsetHeight;
console.log(height);
});
}
ЕУ
DS
ЕУ
nt
ЕУ
DS
DS
SB
PT
<div *ngFor="let item of targeting">Почему выдает 0??? Если через инспектор 18пикселей
<app-custom-info class="d-flex align-items-center mr-1" #customInfo >
@ViewChildren('customInfo') components: QueryList<CustomInfoComponent>;
ngAfterViewInit(): void {
this.components.toArray().map( (comp) => {
const height = comp['element'].nativeElement.offsetHeight;
console.log(height);
});
}
EC

A
A
<div *ngFor="let item of targeting">Почему выдает 0??? Если через инспектор 18пикселей
<app-custom-info class="d-flex align-items-center mr-1" #customInfo >
@ViewChildren('customInfo') components: QueryList<CustomInfoComponent>;
ngAfterViewInit(): void {
this.components.toArray().map( (comp) => {
const height = comp['element'].nativeElement.offsetHeight;
console.log(height);
});
}
PT
G