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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: parammap in ng4 #216

Closed
wants to merge 3 commits into from
Closed

feat: parammap in ng4 #216

wants to merge 3 commits into from

Conversation

cexbrayat
Copy link
Member

No description provided.

Copy link
Member

@clacote clacote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syntactically LGTM.

@cexbrayat cexbrayat requested a review from jnizet March 23, 2017 09:33
or as an Observable:

this.route.paramMap
.map((params: ParamMap) => params.get('ponyId'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the type necessary? Can't TS infer it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't, that was just to show that there was a new type. I did the same in the ebook.


this.route.paramMap
.map((params: ParamMap) => params.get('ponyId'))
.switchMap(id => this.ponyService.get(id))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoudn't we catch? or do you omit it intentionally to avoid cluttering the code?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I omitted it on purpose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants