0
A
回答
0
您正在访问类的实例属性。如果你想访问renderComponent
你需要创建一个RootRenderer
(使用依赖注入)的实例。
btw,RootRenderer
已从Angular 4中弃用,改用RendererFactory2
代替。 https://angular.io/docs/ts/latest/api/core/index/RendererFactory2-class.html
相关问题
- 1. 错误TS2339:房产“的”对类型不存在“HTMLProps <HTMLLabelElement>”
- 2. TS2339:属性不存在于类型'IntrinsicAttributes&IntrinsicClassAttributes <FormInstance <{},部分<ConfigProps <{}, {}> >>>&...'
- 3. 错误TS2339:房产“连接”上不存在类型“导航”
- 4. mongoose schema.method不起作用:TypeScript错误TS2339:属性'myMethod'在类型'上不存在'型号<MyModelI>'
- 5. 错误TS2339:房产“”上不存在类型'Angular2
- 6. (24,42):错误TS2339:属性'jwt_decode'在类型'窗口'上不存在
- 7. ts2339:属性“应该”不会对类型蓝鸟存在<boolean>
- 8. 错误TS2339:房产 '诊断' 的类型不存在 'CordovaPlugins'
- 9. 错误:“属性'setIn'不存在类型'地图<any, any>''
- 10. typeof运算(ICollection的<>).GetTypeInfo()。IsAssignableFrom(typeof运算(IList的<>))
- 11. 使用<<<抛出拍的shell错误不是在bash
- 12. 包<name>不存在错误
- 13. 错误不符合运营商<<
- 14. 错误:read_util:read_line_to_codes/2:<stream>不存在
- 15. 属性'订阅'不存在类型'Observable <User> |错误'。物业“订阅”不会对类型“错误”存在
- 16. Typescript推断错误类型:TS2339属性'selected'在'string'类型上不存在
- 17. typeof(T)vs <T>
- 18. 解析错误:语法错误,意外'<'-----使用echo <<< END ** END; -------
- 19. 错误:“不匹配'operator <<'(操作数类型是std :: istream)
- 20. React组件中的TypeScript TS2339错误:属性'xyz'在类型'IntrinsicAttributes ...'上不存在'
- 21. “<br /><b>解析错误</b>:语法错误,意外 '{' 在上线<b>/home/site/public_html/devel/modules//filter.php</b><br />”
- 22. TS2339:属性不存在类型
- 23. 错误TS2339 [属性*在类型上不存在]与相关文件;
- 24. 属性'toPromise'类型上不存在'Observable <Response>
- 25. 类型'HTMLProps <HTMLDivElement>'上不存在属性'styleName''
- 26. git“<<<<<<< HEAD”
- 27. 获取Scala类型绑定错误:未找到:类型<%<
- 28. 获取错误类型'Observable <{}>'不可分配为键入'Observable <User>'。试图用@ NGRX /存储的store.select()
- 29. Gemfile语法错误:<<<<<<<试图启动本地主机时的头部
- 30. JSLT错误<c:if></c:if>
向我们提供您的代码,Angular和其他版本 – Sakuto