File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ This project was generated with [Angular CLI](https://github.com/angular/angular
72
72
BrowserModule,
73
73
FormsModule,
74
74
],
75
- providers: [AccountService, LoggingService], < --------
75
+ providers: [AccountService, LoggingService], < -------- injeta o serviço no nível mais alto
76
76
bootstrap: [AppComponent]
77
77
})
78
78
```
@@ -83,7 +83,7 @@ This project was generated with [Angular CLI](https://github.com/angular/angular
83
83
selector: ' app-account' ,
84
84
templateUrl: ' ./account.component.html' ,
85
85
styleUrls: [' ./account.component.css' ],
86
- providers: [LoggingService], < -------- -
86
+ providers: [LoggingService], < -------- - injeta o serviço no nível de um único componente / de seus componentes filhos
87
87
})
88
88
```
89
89
You can’t perform that action at this time.
0 commit comments