从app/graph-options/options.ts
,我导出变量:
export let lineChartLevel2: string = "EXPORT";
从app/level-2/level-2.component.ts
开始,我导入变量:
import { lineChartLevel2 } from '../graph-options/options';
这会导致以下错误:
Failed to compile.
c:/PDWS/src/app/level-2/level-2.component.ts (6,10):
Module '"c:/PDWS/src/app/graph-options/options"' has no exported member 'lineChartLevel2'.
有什么想法吗?
答案 0 :(得分:1)