摘要: 1.安装core ,shared模块 ng g m core ng g m shared 2.在shared中导入core模块 core模块只加载一次所以将公共组件放到core中 3.创建公共组件: ng g c core/header --spec=false 创建header组件,并且不使用测试 阅读全文
posted @ 2019-04-02 06:36 孟小孩 阅读(139) 评论(0) 推荐(0) 编辑