You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm submitting an update request for the tutorial docs
[ ] Regression (behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
In following one of the tutorial workflows, the angular in memory web api dependency is missed. As a user, I followed this workflow:
Complete steps 1-4 (notice the package.json is missing "angular-in-memory-web-api" if entering into the tutorial workflow this way.
Read "Next Step" at bottom of page "If you're new to Angular, continue with the tutorial. You can skip the "Setup" step since you're already using the Angular CLI setup."
Skipped setup section of the tutorial (still missing in-memory-web-api dependency)
Completed tutorial through HTTP: Simulate the web API
Error: missing angular-in-memory-web-api
Expected behavior
In the tutorial https://angular.io/tutorial/toh-pt6#heroes-and-http, let users know to check for the npm dependency in their package.json if it is not there: npm install --save angular-in-memory-web-api dependency.
Minimal reproduction of the problem with instructions
See Current behavior above.
What is the motivation / use case for changing the behavior?
Developers learning angular may get stuck at this issue.
Please tell us about your environment
Angular version: 4.2.3
Browser:
- [x] Chrome (desktop) version 58.0.3029
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: v6.10.2
- Platform: Mac
Others:
None.
The setup section of the tutorial does not add dependency to in-memory-web-api. instead, HTTP section of the tutorial has instructions to install in-memory-web api. So even if you miss setup instruction in the tutorial, you will still be directed to the step that installs in-memory-web-api.
Activity
[-]Quickstart "skip setup" tutorial workflow misses NPM dependency[/-][+]docs: toh-pt6 - missing Angular-in-memory-web-api NPM dependency[/+]wardbell commentedon Jun 23, 2017
Probably have similar problem in every sample app that uses the in-mem-web-api. Confirm.
steelstring94 commentedon Jun 28, 2017
I have the same problem. Is there any workaround until this is fixed?
0x-2a commentedon Jun 28, 2017
Navigate to your project's folder from the terminal and install the missing dependency with npm:
npm install --save angular-in-memory-web-apijenniferfell commentedon Apr 25, 2018
docarea=tutorial
sreevani-ship-it commentedon Jun 17, 2018
The setup section of the tutorial does not add dependency to in-memory-web-api. instead, HTTP section of the tutorial has instructions to install in-memory-web api. So even if you miss setup instruction in the tutorial, you will still be directed to the step that installs in-memory-web-api.
trotyl commentedon Jun 19, 2018
This one was fixed by #19811 as per #19811 (comment).
angular-automatic-lock-bot commentedon Sep 13, 2019
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.