angular - 继承的类模板中的 WebStorm Angular 警告
问题描述
在使用 WebStorm 20193.2 时,我在 Angular 模板中观察到这样的警告:
因为这些属性在父组件而不是子组件上初始化
@Component({
selector: 'app-dictionary-dropdown',
templateUrl: './dictionary-dropdown.component.html',
...
})
export class DictionaryDropdownComponent extends Dropdown implements OnInit, OnDestroy {
...
我试图添加到子类implements <name of parent component>
,但它没有帮助。
有什么解决方案可以摆脱那些WebStorm 警告吗?
解决方案
推荐阅读
- kubernetes - pod 应用程序存储在 PV 持久存储上的文件在主机上不可见 [GKE]
- linux - 在 ubuntu 18.04 上设置 TUNSETQUEUE 总是失败
- malware - 如何从勒索软件中恢复每个文件中带有“[3442516480@qq.com].pdf”的文件
- typescript - 如何限制从另一种类型派生的类型中可能的属性值
- amazon-web-services - 有没有办法快速确定 cloudformation 所需的所有权限?
- javascript - 如何根据选择顶点项目在交互式网格列中设置默认值
- selenium - docker 将 chromedriver 添加到路径并运行 dotnet 测试
- javascript - 如何绕过在 iphone 中使用 html5 视频标签进行全屏播放?
- reporting-services - SSRS 打印每条记录的子报告
- javascript - 在表格内创建可靠的下拉列表