ERROR TypeError: _co.onCLk is not a function
You have named the function wrong in your template, Change "L"
to "l"
From
(click)="onCLk($event)"
To
(click)="onClk($event)"
below code will do.
onClk = function(event){
this.name = event.target.innerHTML;
}