Acces to component instance inside mat-row Angular Material Table

<!– Position Column –> <ng-container matColumnDef=”position”> <th mat-header-cell *matHeaderCellDef> No. </th> <td mat-cell *matCellDef=”let element”> <app-my-component [position]=”element.position” ></app-my-component> </td> </ng-container> image of my table Hello, I want to access to my component instance that is inside a matRow https://stackblitz.com/edit/angular-mmuf6a I have create an row directive with host on click listener and I try to get…

Details

Why does main thread here doesn’t wait for t2? Here the output always is always more than 20000 but not consistent

package org.multithreading.basics; public class ThreadJoin { public static void main(String[] args) { Counter counter = new Counter(); Thread t1 = new Thread(counter); Thread t2 = new Thread(counter); t1.start(); t2.start(); try { t1.join(); t2.join(); } catch (InterruptedException e) { e.printStackTrace(); } System.out.println(“Numbers counted =” + counter.getCount()); } } class Counter implements Runnable { private int count;…

Details