关于angular2中的删除事件如何编写!!!

同事写了个按钮控件数组this.buttons = [
{
text: '新增', class: 'btn btn-primary', self: this, fn: function () {
this.self.router.navigate(['./new'], {relativeTo: this.self.route});
return false;
}
},
{
text: '修改', class: 'btn btn-warning', self: this, fn: function () {
if ($('[name = "ids"]:checked').length === 1) {
this.self.router.navigate(['./edit', $('[name = "ids"]:checked').attr('id')], {relativeTo: this.self.route});
} else {
alert('只能选择一条数据进行修改!');
}
return false;
}
},
{
text: '删除', class: 'btn btn-danger', self: this, fn: function () {
alert('删除事件');
return false;
}
},
];
现在我要进行编写删除我写的代码是
this.jcXfglCURDService.XfglDel(this.xfgl);
页面反馈信息是找不到XfglDel方法
Unable to get property 'XfglDel' of undefined or null reference
请教一下我该如何去编写这个删除方法啊

你要删除什么,找不到XfglDel方法的一种可能性是你们的scope不同,你试试$parent行不行