本文介绍了Angular 6:无法读取未定义的属性'runOutsideAngular'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经通过此命令使用cli创建了nav-bar
I have created nav-bar
using cli through this command
ng g @angular/material:material-nav --name=version-nav
并以
<app-version-nav></app-version-nav>
并收到此错误
任何有益的建议将不胜感激
any helpful suggestion would be highly appreciated
推荐答案
我无法找到解决此问题的真正方法,但要处理这种情况,我做了!!!!!!
I couldn't find the real-solution to this problem but to handle this situation what I did!!!
我确实创建了一个新的角度项目
I did create a new angular project
ng new new-project --style=scss
并将我的所有代码(即组件,服务等)导入到新项目中,然后创建侧面导航
and imported all my code i.e. components, services etc in new-project and then created the side-nav
ng g @angular/material:material-nav --name=version-nav
并通过指令app-version-nav
<app-version-nav></app-version-nav>
现在侧鼻翼工作正常
这篇关于Angular 6:无法读取未定义的属性'runOutsideAngular'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!