'this' is not passed to your function scope, try
declare var UIkit:any;
deleteData(dataArr): void {
var that = this;
UIkit.modal.confirm('Are you sure you want to delete this?', function(){
console.log(dataArr);
console.log(that);
//use service here...
UIkit.modal.alert('Confirmed!');
});
}