【发布时间】:2019-07-09 15:26:51
【问题描述】:
Angular form 5.1 升级到 8 后,从 '@angular/common' 导入的模块 NgStyle 报错, 在 5.1 NgStyle 中使用接受 3 个参数,而在 8 中它只接受一个参数。
import { NgStyle } from "@angular/common";
@Directive({
selector: '[chartContainer]'
})
export class ChartContainerDirective implements OnInit {
this.ngStyle = new NgStyle(this._differs, divRef, this.renderer);
}
请为此提出一条出路。
【问题讨论】:
标签: javascript node.js angular typescript ecmascript-6