小编Hll*_*ink的帖子

路由:导出变量'foo'在外部模块中使用或正在使用名称'ModuleWithProviders'

我正在按照有角度的2路线指南

import { Routes, RouterModule } from '@angular/router';
import { FooComponent }    from './component/foo.component';
const fooRoutes: Routes = [
  { path: 'foopath',  component: FooComponent },
];
export const fooRouting = RouterModule.forChild(fooRoutes);
Run Code Online (Sandbox Code Playgroud)

在visual studio代码中我有以下错误: 打字稿错误 任何人都可以告诉我为什么会这样吗?这与官方指南完全相同.我正在使用Angular 2 RC5.

angular2-routing angular

3
推荐指数
1
解决办法
2091
查看次数

标签 统计

angular ×1

angular2-routing ×1