Skip to content

Tutorial : Managing Data has a bug #583

@sinandersinan

Description

@sinandersinan

Describe the bug

In your documentation it says:

export class ShippingComponent {

shippingCosts = this.cartService.getShippingPrices();
}

without supporting shippingCosts with type any it is not compiling on stackblitz. So it has to be:

export class ShippingComponent {

shippingCosts: any = this.cartService.getShippingPrices();
}

Link to the blitz that caused the error

https://stackblitz.com/edit/angular-ru18g3?file=src%2Fapp%2Fshipping%2Fshipping.component.html

Steps to reproduce

set shippingCosts to type any

Expected behavior

Expecting type of any

Parity with Local

  • I have run the project in my local machine and I could not reproduce the issue.

Screenshots

Platform

Browser name  = Chrome 
Full version  = 97.0.4692.99
Major version = 97
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 140659428,
  "usedJSHeapSize": 126169716,
  "jsHeapSizeLimit": 2172649472
}
Hash = 5df97b5e61f923919ea927c406a4806b792de8c6

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions