我创建了一个角度库,为了进行测试,我将其包含为测试角度项目中的npm依赖项。 当我将模块(从lib导出)添加到app.module导入时,由于Class C不是Angular模块,我遇到了错误。请帮忙
结构就像
Projects
customlibrary
lib
index.ts (having reference to all folders)
customModule.ts
public-api.ts (export * from './lib';)
尝试引用链接,但无法解决问题 Angular class is not an Angular module