-
Notifications
You must be signed in to change notification settings - Fork 272
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
