Open etfired1 opened 2 years ago
Angular Structured Directive Requirements The instruction constructor includes ViewContainerRef and a TemplateRef, and the WebStorm editor will strictly check this configuration.
Angular Structured Instruction Requires The Instruction Constructor To include ViewContainerRef and a Templateref. WebStorm Editor Will Strictly Check this configuration.
It is recommended to add these two parameters on the instruction Space-Item.directive.ts constructor to maintain a structured instruction constructor format that conforms to Angular Convention. This part of this part code is empty instruction, and the constructor has no parameters.
It is suggested that these two parameters should be added to the instruction space-item.directive.ts constructor to keep the structured instruction constructor format conforming to the Angular convention. At present, this Part of code is an Empty Instruction, And The Constructor Has No parameter.
现在还有这个问题
What problem does this feature solve?
Angular结构化指令要求指令构造函数包括ViewContainerRef和一个TemplateRef,WebStorm编辑器会严格检查这个配置。
Angular structured instruction requires the instruction constructor to include ViewContainerRef and a TemplateRef. WebStorm editor will strictly check this configuration.
What does the proposed API look like?
建议在指令 space-item.directive.ts 构造函数上加上这两个参数,保持符合Angular约定的结构化指令构造函数格式。 目前该部分代码为空指令,构造函数无参数
It is suggested that these two parameters should be added to the instruction space-item.directive.ts constructor to keep the structured instruction constructor format conforming to the Angular convention. At present, this part of code is an empty instruction, and the constructor has no parameters.