Skip to content

Commit a512a10

Browse files
authored
fix: incorrect comment about injection (#83)
This comment is not true. The service is declared with the `providedIn` construct in the service file.
1 parent 807bd2d commit a512a10

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/template-hello-world-ng/src/app/item/items.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ import { ItemService } from "./item.service";
1010
export class ItemsComponent implements OnInit {
1111
items: Array<Item>;
1212

13-
// This pattern makes use of Angular’s dependency injection implementation to
14-
// inject an instance of the ItemService service into this class.
15-
// Angular knows about this service because it is included in your app’s main NgModule,
16-
// defined in app.module.ts.
1713
constructor(private itemService: ItemService) { }
1814

1915
ngOnInit(): void {

0 commit comments

Comments
 (0)