From c26d6a87a00445da3b1cb730821a894141f44729 Mon Sep 17 00:00:00 2001 From: "Zhimin YE (Rex)" Date: Wed, 24 Aug 2016 14:11:32 +0100 Subject: [PATCH] fixed: toh-pt6 --- public/docs/ts/latest/tutorial/toh-pt6.jade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/docs/ts/latest/tutorial/toh-pt6.jade b/public/docs/ts/latest/tutorial/toh-pt6.jade index 0015bcde6f..d0ffb0f370 100644 --- a/public/docs/ts/latest/tutorial/toh-pt6.jade +++ b/public/docs/ts/latest/tutorial/toh-pt6.jade @@ -97,7 +97,7 @@ block http-providers 我们要能从本应用的任何地方访问`http`服务,所以,就要在`app.module.ts`中的`imports`数组中注册它们。 这里同时也是我们引导应用及其根组件`AppComponent`的地方。 - +makeExample('app/app.module.ts', 'v1','app/app.module.ts (v1)') ++makeExample('app/app.module.ts', 'v1','app/app.module.ts (v1)') :marked Notice that we supply `!{_HttpModule}` as part of the *imports* !{_array} in root NgModule `AppModule`. @@ -156,6 +156,8 @@ block backend The `forRoot` configuration method takes an `InMemoryDataService` class that will prime the in-memory database as follows: + `forRoot`配置方法需要`InMemoryDataService`类实例,用来向内存数据库添加种子数据: + +makeExample('app/in-memory-data.service.ts', 'init')(format='.') p This file replaces the #[code #[+adjExPath('mock-heroes.ts')]] which is now safe to delete.