数组的角度打字稿枚举在forRoot配置模块中为null

时间:2018-08-06 12:03:48

标签: angular typescript angular-module

我面对Angular 6和TypeScript的怪异问题。问题在于,该枚举正使用该模块的forRoot方法转换为数组并传递给模块。当console.logging在其他任何地方时-传递的数组存在,但是如果console.logging在服务提供者内部-数组是null。我附上了回购协议,这将有助于重现该问题。仅对于内置文件或与ng serve --prod一起使用时,会出现此问题。

This is the repository of the reproducible issue

0 个答案:

没有答案