欢迎各位兄弟 发布技术文章
这里的技术是共享的
没有检查代码(现在不能)我认为你很好地解决了这个问题。我不希望这会破坏其他任何东西,因为该代码只关注那一件事。 另一件事是,现在我们可能要 |
好的,已在1.13.0中修复,再次感谢。 |
来自 https://github.com/tomastrajan/angular-ngrx-material-starter/issues/5
I am currently getting the following error when running npm start: ERROR in C:/Users/....../angular-ngrx-material/src/app/app.component.ts (52,31): Property 'themeClass' does not exist on type 'OverlayContainer'. As per the recent Angular Material changelog available here https://github.com/angular/material2/blob/master/CHANGELOG.md#200-beta11-carapace-parapet-2017-09-21
Can you please help me with this issue. I think replacing this.overlayContainer.themeClass = theme; inside the app.component.ts with the above code will resolve the issue but I am afraid it may break other things in the App. Thanks in advance. |
Without checking the code (cant now) I think you troubleshooted the issue pretty well. I would not expect that to break anything else because that code was only concerned with that one thing. Another thing is that now we probably have to |
Ok, was fixed in 1.13.0, thanks again. |
来自 https://github.com/tomastrajan/angular-ngrx-material-starter/issues/5
GuateDevIO 评论道 on 25 Sep 2017
我正在运行npm start时出现以下错误:C:/ Users /....../ angular-ngrx-material / src / app / app.component.ts(52,31)中的错误:属性'themeClass ''OverlayContainer'类型不存在。
根据最近的Angular Material更改日志,请访问https://github.com/angular/material2/blob/master/CHANGELOG.md#200-beta11-carapace-parapet-2017-09-21
overlayContainer.getContainerElement().classList.add('my-theme-class');
你能帮我解决这个问题。我想替换this.overlayContainer.themeClass = theme; 在app.component.ts中使用上面的代码将解决问题,但我担心它可能会破坏应用程序中的其他内容。提前致谢。