You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
出错的URL:https://angular.cn/tutorial/toh-pt4#inject-the-heroservice
错误的内容(请拷贝进来一份精确的出错文本,以便我定位):
这一段的实例代码,MessageService还没创建,之后才用到的
建议的修改方式(可选):删掉即可
import { MessageService } from '../message.service';
还有后面的
constructor(private heroService: HeroService, private messageService: MessageService) { }
改成
constructor(private heroService: HeroService) { }
英雄留名(会出现在鸣谢清单中,默认使用你的github id):
The text was updated successfully, but these errors were encountered: