Skip to content

package.json in guide/elements download #31332

@o-alexandre-felipe

Description

@o-alexandre-felipe

📚 Docs or angular.io bug report

Description

In the guide about angular/elements there is an example, the issue is related to the code available for download in the end of the session https://angular.io/guide/elements#example-a-popup-service.

While the code itself works, the package.json needs to be updated.

🔬 Minimal Reproduction

  1. Download the code from the the link int the page, pointing to https://angular.io/generated/zips/elements/elements.zip.
  2. Extract the zip in a new folder.
  3. npm install
  4. ng serve

The package @angular/elements is missing.
the package
"angular-in-memory-web-api": "github:brandonroberts/in-memory-web-api-bazel#50a34d8"
require versions < 8.0.0 of some angular packages, it seems that in the mean time the package was added to npm, and now it can be changed to
"angular-in-memory-web-api": "0.8.0"

What's the affected URL?**

https://angular.io/guide/elements

I have noticed a comment in the github source about needing polyfills but in the page it was not clear if any additional step would be required after downloading. Since it is a guide it is supposed to be followed by beginners, and I believed it was something that worth to report.

Metadata

Metadata

Labels

freq1: lowstate: communitySomeone from the Angular community is working on this issue or submitted this PRtype: bug/fix

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions