How to know what component clicked within a grid and know what are the surroundings'?

Hi,

I am having a grid of components “C”:

C1 C2 C3 C4
C5 C6 C7 C8
C9 10 C11 C12

I made a first component “grid” and another one "gridelement"
I repeat C 3x4 times via a “*ngfor” of grid:string[ ][ ]

<div *ngfor="let line in grid">

<div *ngfor="let col in line">
<gridelement (click)='WhatEl(col.i, col.y)'></gridelement>
</div>
</div>

I need to know what component, what are the surroundings component (and their value). It is for a game.

Is that the good method?

Thanks,

Stéphane.