Skip to content

Missing @Injectable() in the Tutorial Project #47425

Closed

Description

@Thanyanit-J

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.

Activity

  1. added this to the needsTriage milestone on Sep 14, 2022
  2. added
    open for contributions
    good first issue
    on Sep 15, 2022
  3. mauromattos00 commented on Sep 15, 2022

    @mauromattos00
    Contributor

    Hello! I can work on this one 😀

  4. jessicajaniuk commented on Sep 19, 2022

    @jessicajaniuk
    Contributor

    The PR has been merged. Closing as fixed.

  5. angular-automatic-lock-bot commented on Oct 20, 2022

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  6. locked and limited conversation to collaborators on Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueopen for contributionsstate: has PR

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions