Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Page title is not correctly updated (#296) #328

Merged
merged 5 commits into from
Dec 12, 2017
Merged

Conversation

sumiet
Copy link
Contributor

@sumiet sumiet commented Nov 13, 2017

Hey, I am new to OSS and this would be my first contribution. Please review the PR.

@sumiet
Copy link
Contributor Author

sumiet commented Nov 13, 2017

I am a little bit confused here, the build is working perfectly for my local and also I haven't modified anything on package.json. Why is npm install still failing. Please guide, I am new to the community and not much aware about the procedure here.

@willshowell
Copy link
Contributor

Thanks for the PR!

The Travis builds have been failing for a while due to some other commit.

I think this behavior should be added to ComponentCategoryList , instead of ComponentSidenav. Also, any subscription needs to be unsubscribed from in ngOnDestroy.

@sumiet
Copy link
Contributor Author

sumiet commented Nov 14, 2017

@willshowell I have implemented the comments, please review.

this.routeParamSubscription = this._route.parent.parent.params.subscribe( params => {
let sectionName = params['section'];
this._componentPageTitle.title = SECTIONS[sectionName];
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Try this, it's a little simpler

this.routeParamSubscription = this.params.subscribe(params => {
  const sectionName = params['section'];
  this._componentPageTitle.title = SECTIONS[sectionName];;
});

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @willshowell, implemented the changes. Please review.

@willshowell
Copy link
Contributor

Pinging @jelbourn for review

@sumiet
Copy link
Contributor Author

sumiet commented Nov 22, 2017

@jelbourn can you please review this.

@sumiet
Copy link
Contributor Author

sumiet commented Nov 28, 2017

@willshowell shall I wait for the reviews? or should I try something else. I am really new to this please guide.

@willshowell
Copy link
Contributor

@sumiet I think your approach is fine - the team will let you know if you need to try something else. I can't speak for them, but it looks like there is a race to get a stable release out soon, so fixing docs site bugs are probably a lower priority than usual.

@jelbourn
Copy link
Member

I'm trying to make the CI green first presently

@sumiet
Copy link
Contributor Author

sumiet commented Nov 28, 2017

@willshowell @jelbourn Okay thanks for the updates.

@jelbourn jelbourn requested a review from amcdnl December 8, 2017 00:03
@jelbourn
Copy link
Member

jelbourn commented Dec 8, 2017

@amcdnl can you review?

Copy link
Contributor

@amcdnl amcdnl left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn merged commit 66a1967 into angular:master Dec 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants