File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,9 @@ service.
177177`src/main/frontend/src/app/app.component.ts`
178178----
179179[role="edit_command_text"]
180- Create the entire [hotspot=artistsServiceClass]`ArtistsService` class. Add the [hotspot=importHttpClient]`HttpClient`
180+ Create the entire [hotspot=artistsServiceClass]`ArtistsService` class
181+ with the [hotspot=atInjectable]`@Injectable` annotation.
182+ Add the [hotspot=importHttpClient]`HttpClient`
181183and [hotspot=importInjectable]`Injectable` import statements at the top.
182184
183185The file imports the [hotspot=importHttpClient]`HttpClient` class and [hotspot=importInjectable]`Injectable` decorator.
@@ -224,8 +226,8 @@ artists data and save it so the component can display it.
224226`src/main/frontend/src/app/app.component.ts`
225227----
226228[role="edit_command_text"]
227- Replace the entire [hotspot=appComponentClass]`AppComponent` class as shown. Add
228- [hotspot=importOnInitAndAngularCorePackage]`OnInit` to the list of imported classes at the top.
229+ Replace the entire [hotspot=appComponentClass]`AppComponent` class with the [hotspot=atComponent]`@Component` annotation.
230+ Add [hotspot=importOnInitAndAngularCorePackage]`OnInit` to the list of imported classes at the top.
229231
230232The [hotspot=providersProperty]`providers` property on the [hotspot=atComponent]`@Component` annotation
231233indicates that this component provides the [hotspot=artistsServiceClass]`ArtistsService` to other
You can’t perform that action at this time.
0 commit comments