I'm working with AgGrid and want to use a localisation.
I add [localeTextFunc]="localeTextFunc"
in my <ag-grid-angular HERE></ag-grid-angular>
In my ts file i have :
localeTextFunc(key, defaultValue) {
console.log("key : ", key);
console.log("defaultValue : ", defaultValue);
console.log("this :", this);
// need to use my translate service
this.translate....
}
My problem is that this
is undefined.
How can i bind this
to my function ?