【发布时间】:2017-05-28 02:07:10
【问题描述】:
【问题讨论】:
标签: angular typescript webstorm tslint
【问题讨论】:
标签: angular typescript webstorm tslint
此规则是关于从模板访问组件的私有成员。私有成员仅用于类本身;模板在组件范围之外执行,因此它们不应访问私有。请参阅https://groups.google.com/forum/#!msg/angular/D_O_1fqA9WQ/pRNQARRiBgAJ、https://github.com/devoto13/angular2-private-members-example。
至于突出显示,似乎 codelizer 报告了不正确的错误位置。请使用ng lint 在终端中运行 tslint - 结果如何?
【讨论】: