Pārlūkot izejas kodu

Add missing step about adding `BeerPage` to `NgModule`

Matt Raible 7 gadus atpakaļ
vecāks
revīzija
b685e76849
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4
    2
      TUTORIAL.md

+ 4
- 2
TUTORIAL.md Parādīt failu

@@ -335,6 +335,8 @@ git commit -m "Add Stormpath"
335 335
 
336 336
 Run `ionic generate page beer` to create a component and a template to display the list of good beers. 
337 337
 
338
+Add `BeerPage` to the `declarations` and `entryComponent` lists in `app.module.ts`.
339
+
338 340
 Run `ionic generate provider beer-service` to create a service to fetch the beer list from the Spring Boot API.
339 341
 
340 342
 Change `src/providers/beer-service.ts` to use have a `getGoodBeers()` method.
@@ -363,7 +365,7 @@ export class BeerService {
363 365
 }
364 366
 ```
365 367
 
366
-Modify `beer.html` to 
368
+Modify `beer.html` to show the list of beers.
367 369
 
368 370
 ```html
369 371
 <ion-header>
@@ -384,7 +386,7 @@ Modify `beer.html` to
384 386
 </ion-content>
385 387
 ```
386 388
 
387
-Modify `beer.ts` to import `BeerService` and add as a provider. Call the `getGoodBeers()` method in the `ionViewDidLoad()` lifecycle method.
389
+Update `beer.ts` to import `BeerService` and add as a provider. Call the `getGoodBeers()` method in the `ionViewDidLoad()` lifecycle method.
388 390
 
389 391
 ```typescript
390 392
 import { Component } from '@angular/core';