Missing @Injectable() in the Tutorial Project

This issue has been tracked since 2022-09-14.

Describe the problem that you experienced

In the tutorial shopping cart project's example code snippet,
@Injectable(), which should be above the export class CartService { ... }, is missing from the "Define a cart service" section.

Enter the URL of the topic with the problem

https://angular.io/start/start-data#define-a-cart-service
https://github.com/angular/angular/blob/3a60063a54d850c50ce962a8a39ce01cfee71398/aio/content/examples/getting-started/src/app/cart.service.ts

Describe what you were looking for in the documentation

No response

Describe the actions that led you to experience the problem

No response

Describe what you want to experience that would fix the problem

No response

Add a screenshot if that helps illustrate the problem

No response

If this problem caused an exception or error, please paste it here

No response

If the problem is browser-specific, please specify the device, OS, browser, and version

No response

Provide any additional information here in as much as detail as you can

I noticed that the example code doesn't have tag for @injectable() part. Thus, it doesn't appear in the code example snippet.

mauromattos00 wrote this answer on 2022-09-15

Hello! I can work on this one 😀

jessicajaniuk wrote this answer on 2022-09-21

The PR has been merged. Closing as fixed.

More Details About Repo
Owner Name angular
Repo Name angular
Full Name angular/angular
Language TypeScript
Created Date 2014-09-18
Updated Date 2022-10-05
Star Count 84147
Watcher Count 3063
Fork Count 22247
Issue Count 1201

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date