码上敲享录 > AngularJS详解 > Component LaCom is not part of any NgModule or the module has not been imported into your module.

Component LaCom is not part of any NgModule or the module has not been imported into your module.

上一章章节目录下一章 2018-05-03已有1437人阅读 评论(0)

angular2跳转报错:

Component LaCom is not part of any NgModule or the module has not been imported into your module.


解决方法

要在模块lacom.module.ts中声明组件lacom.component.ts(类名为LaCom

declarations: [
 LaCom,
 UserQuery,
]

本文地址:http://www.yayihouse.com/yayishuwu/chapter/1230

0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交