Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

示例代码错误 #461

@discdisk

Description

@discdisk

注意:新版本文档位于aio分支下,master分支下是老版本的文档。

对于错别字或明显的语法错误,建议直接发 PR(在content目录下相应的文件上直接编辑,保存时就会自动变成PR)。

出错的URL:https://angular.cn/tutorial/toh-pt4#inject-the-heroservice

错误的内容(请拷贝进来一份精确的出错文本,以便我定位):
这一段的实例代码,MessageService还没创建,之后才用到的
image

建议的修改方式(可选):删掉即可
import { MessageService } from '../message.service';
还有后面的
constructor(private heroService: HeroService, private messageService: MessageService) { }
改成
constructor(private heroService: HeroService) { }

英雄留名(会出现在鸣谢清单中,默认使用你的github id):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions