Underscore不会识别明确的类型属性

时间:2018-06-14 10:28:02

标签: typescript underscore.js angular5

为什么下划线不能在intallisanse中显示模型的属性。



this.accountService.getAll().subscribe(
  (accounts : Account[])  => {

    accounts.forEach(g => g.email) // standart forEach revails all my typed properies
    let account = _.each(accounts, (r) => r....??); // here is nothing, also _.find method and etc

    return true;
  },
  (e) => this.toasterService.pop('error', 'Forgot Password', e.error.message))




0 个答案:

没有答案
相关问题