Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify + usage #36373

Closed
sdavids opened this issue Apr 1, 2020 · 2 comments
Closed

Clarify + usage #36373

sdavids opened this issue Apr 1, 2020 · 2 comments
Milestone

Comments

@sdavids
Copy link

sdavids commented Apr 1, 2020

馃摎 Docs or angular.io bug report

Description

The documentation is aimed at newcomers to Angular/JavaScript--so please clarify why + is used.

馃敩 Minimal Reproduction

What's the affected URL?

https://angular.io/start/start-routing#using-route-information

ngOnInit() {
  this.route.paramMap.subscribe(params => {
    this.product = products[+params.get('productId')];
  });
}

products[+params.get('productId')]

vs.

products[params.get('productId')]

@AnthonyLenglet
Copy link

Duplicate of #33001

@ngbot ngbot bot added this to the needsTriage milestone Apr 1, 2020
@sdavids sdavids closed this as completed Apr 7, 2020
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants