From e064f177a7f92f65acbeabba85d14cbe6de162f9 Mon Sep 17 00:00:00 2001 From: Ryan Andersen Date: Thu, 1 Jul 2021 09:11:56 -0400 Subject: [PATCH] docs: add missing import to `CartService` tutorial instructions (#42701) PR Close #42701 --- aio/content/examples/getting-started/src/app/cart.service.ts | 4 ++-- aio/content/start/start-data.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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.