promise "then" 函数中的 aurelia 视图模型属性

aurelia view-model properties inside a promise "then" function

我正在尝试将我的视图模型属性和绑定访问到承诺的 "then" 函数中,就像这样:

let that = this;
this.getDate().then(data => {
    that.binding.style.backgroundColor = "white";
    console.log(that.property);
});

问题是 "this" 未定义,所以我应该如何获得这些?

我的错误是试图在调试器中读取 "this",而我应该尝试读取的变量是 _this5,它是由 babel transpiller 为 ES5 创建的。