Hero; constructor(private heroService: HeroService) ... When a class requires a dependency, that dependency is added to the constructor as a parameter.
確定! 回上一頁