diff --git a/aio/content/examples/getting-started/src/app/cart.service.ts b/aio/content/examples/getting-started/src/app/cart.service.ts index 5252a800d9..2055d4bdeb 100644 --- a/aio/content/examples/getting-started/src/app/cart.service.ts +++ b/aio/content/examples/getting-started/src/app/cart.service.ts @@ -1,9 +1,9 @@ -// #docplaster // #docregion import-http import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; +// #docregion props import { Product } from './products'; -// #enddocregion import-http +// #enddocregion props, import-http @Injectable({ providedIn: 'root' diff --git a/aio/content/start/start-data.md b/aio/content/start/start-data.md index 21fe826aa3..1fbe6ecd22 100644 --- a/aio/content/start/start-data.md +++ b/aio/content/start/start-data.md @@ -30,6 +30,7 @@ This section walks you through adding a **Buy** button and setting up a cart ser +1. Import the `Product` interface from `./products.js`. 1. In the `CartService` class, define an `items` property to store the array of the current products in the cart.