Missing @Injectable() in the Tutorial Project

This issue has been created 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-04
Star Count 84139
Watcher Count 3064
Fork Count 22243
Issue Count 1206

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
VPN mode in desktop version? 6 2022-09-15 2022-09-20
why not have vue renders code ? 3 2022-02-25 2022-07-18
npm init @alilc/element your-element-name 命令失效 2 2022-02-28 2022-09-30
cannot find module providing package 0 2021-04-23 2022-09-11
Python and Pytorch Version for Train 3 2022-04-28 2022-09-02
installation in node-red with docker 1 2020-11-14 2022-10-04
Please add support for Panasonic cameras 1 2021-12-30 2022-07-16
AtImagePicker 在 iOS 下无法选择图片 1 2021-01-13 2022-10-04
Can't install tabpy-tools 2 2022-02-24 2022-08-29
Datetime Error on Daily Fillings 0 2021-02-04 2022-10-01
Add sea-orm-cli flag to skip deserialization of primary keys for entities 1 2022-07-06 2022-08-16
Bus error (core dumped) 1 2021-09-15 2022-09-28
no current record for fetch operation - FB40 1 2021-09-15 2022-09-02
appear button in ios 6 2022-02-17 2022-09-01
Empty result with suffix "%" shows "null%" in Gauge visualization 0 2021-11-08 2022-09-21
Client crash when loading new start zone 3 2021-12-11 2022-08-22
[Feature Request]: Bios select at per-game settings 5 2022-05-25 2022-05-21
JS Date is inserted as a number instead of DATETIME for SQLite 0 2022-06-25 2022-09-25
PFM Review / pfm_documentation_url usage 3 2021-01-02 2022-08-25
Error message for body validation 1 2021-06-23 2022-09-19
Support for additive scenes in Unity 4 2017-08-07 2022-10-03
Dynamic extended help 11 2019-08-03 2022-09-29
the `scrollBetweenSections` mixin is no longer working 3 2022-01-11 2022-02-20
Understanding Explain Plan 2 2022-01-22 2022-08-31
Add Dabb Doge (BEP20) #19493 1 2022-04-04 2022-09-24
Outdated o3de logo is used for remote Project and remote Template icons 0 2022-09-14 2022-09-19
Bug Report: Automated Periodic Failure bug reports do not auto assign to a SIG or lack `needs-sig` label 1 2022-09-14 2022-09-19
Entering and exiting the Simulate Mode using the CTRL+P shortcut makes the Editor behave as if the CTRL key was constantly held 0 2022-09-14 2022-09-19
Meshlets Gem Sample Is Broken 0 2022-09-13 2022-09-19
store full paths to playlist items in db, not track fkeys 11 2020-04-09 2022-05-23
Run `.chezmoiexternal` after `run_before` but before everything else 3 2021-11-11 2022-09-16
[QUERY] HTTPS support for proxy in managers 7 2020-04-15 2022-10-03
Use `remark-variables` for custom frontmatter variable substitution 2 2021-10-31 2022-09-13
Amplify can't find project when I do amplify codegen models 4 2021-08-10 2022-08-23
Update VPN client to 0.8.49 0 2021-06-04 2022-07-27
Update VPN client to 0.8.50 0 2021-06-04 2022-07-28
Expo project doesn't run on Mac M1 1 2022-06-17 2022-09-02
Allow parsing to class with default parameter 1 2021-09-10 2022-09-28
how to limit rate when use enqueue-dev with laravel? 1 2021-08-09 2022-09-21
[EN DateTime V2] Handling cases like "April ninth through 15th" 1 2022-03-15 2022-09-14
Opening a service container in vscode stops the container's original running service 2 2021-08-23 2022-09-25
Packet Forwarder configuration file for IN865 1 2022-08-01 2022-09-27
Failed to get LBT TX status often in TIMESTAMPED mode 1 2022-07-01 2022-09-27
Blocket expects latin1 URL query strings 4 2013-01-13 2022-08-29
United kingdom is missing a capital K 2 2022-09-28 2022-09-24
Internal release on every commit is failing 0 2022-09-28 2022-09-24
Should this code's licensing match the Rust project's? 2 2022-04-19 2022-09-26
ToggleQueryResults - only works if the Code Editor is selected 1 2022-08-23 2022-09-19
Expose the profile GUID to the environment (WT_PROFILE, WT_PROFILE_GUID?) 12 2019-11-15 2022-09-13
Update telemetry 0 2020-07-13 2022-01-23