Skip to content

Commit eee6ed5

Browse files
committed
fix code blocks not working within numbered list in step 08
1 parent 239de63 commit eee6ed5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.docs/angular-meteor/client/content/tutorials/angular2/steps/tutorialAngular2.step_08.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -172,22 +172,25 @@ In `parties-list.ts`, `party-details.ts` and `party-form.ts` follow the instruct
172172
- `import {PartyService} from 'client/lib/party-service';`
173173
- In the component, add `viewBindings: [PartyService]`
174174

175-
175+
```
176176
@Component({
177177
selector: 'parties-list',
178178
viewBindings: [PartyService]
179179
})
180+
```
180181

181182
4. Inject partyService into the constructor and set `this.partyService` to the injected.
182183

183-
184+
```
184185
constructor(@Inject(PartyService) partyService:PartyService) {
185186
this.partyService = partyService;
187+
```
186188

187189
5. Access the service through `this.partyService` in your methods.
188190

189-
191+
```
190192
this.partyService.remove(party._id)
193+
```
191194

192195
I hope this syntax will clean up in the future.
193196

0 commit comments

Comments
 (0)