Skip to content

fix(progress-bar): not taking current path after first initialization - #13628

Merged
josephperrott merged 1 commit into
angular:masterfrom
crisbeto:progress-bar-outdated-path
Oct 19, 2018
Merged

fix(progress-bar): not taking current path after first initialization#13628
josephperrott merged 1 commit into
angular:masterfrom
crisbeto:progress-bar-outdated-path

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Currently we use a provider in the progress bar in order to get the current path and to account for server-side rendering. Since the provider is an object with a plain pathname property, Angular will create it once and cache it, which means that we'll always get the first path that it landed on. The issue can be seen by going to the card demos and then clicking through to the progress bar demo.

Currently we use a provider in the progress bar in order to get the current path and to account for server-side rendering. Since the provider is an object with a plain `pathname` property, Angular will create it once and cache it, which means that we'll always get the first path that it landed on. The issue can be seen by going to the card demos and then clicking through to the progress bar demo.
@crisbetocrisbeto added the target: patch This PR is targeted for the next patch release label Oct 16, 2018
@googlebotgooglebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 16, 2018

@josephperrottjosephperrott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@josephperrottjosephperrott added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Oct 16, 2018
crisbeto added a commit to crisbeto/material2 that referenced this pull request Oct 17, 2018
When resolving the current path while prefixing `url()` references, we use a provider to get the current path so we can account for server-side rendering and to be able to stub it out during tests. Since the provider is an object with a regular `pathname` property, the path will only be resolved once the first time an icon is resolved and then it'll be cached. This means that all subsequent icons will take an incorrect path.
Related to angular#13628.
josephperrott pushed a commit that referenced this pull request Oct 18, 2018
When resolving the current path while prefixing `url()` references, we use a provider to get the current path so we can account for server-side rendering and to be able to stub it out during tests. Since the provider is an object with a regular `pathname` property, the path will only be resolved once the first time an icon is resolved and then it'll be cached. This means that all subsequent icons will take an incorrect path.
Related to #13628.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Oct 18, 2018
When resolving the current path while prefixing `url()` references, we use a provider to get the current path so we can account for server-side rendering and to be able to stub it out during tests. Since the provider is an object with a regular `pathname` property, the path will only be resolved once the first time an icon is resolved and then it'll be cached. This means that all subsequent icons will take an incorrect path.
Related to angular#13628.
josephperrott pushed a commit that referenced this pull request Oct 18, 2018
When resolving the current path while prefixing `url()` references, we use a provider to get the current path so we can account for server-side rendering and to be able to stub it out during tests. Since the provider is an object with a regular `pathname` property, the path will only be resolved once the first time an icon is resolved and then it'll be cached. This means that all subsequent icons will take an incorrect path.
Related to #13628.
@josephperrott
josephperrott merged commit 88c6548 into angular:masterOct 19, 2018
@angular-automatic-lock-bot

Copy link
Copy Markdown

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-botangular-automatic-lock-botBot locked and limited conversation to collaborators Sep 9, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: mergeThe PR is ready for merge by the caretakercla: yesPR author has agreed to Google's Contributor License Agreementtarget: patchThis PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@crisbeto@josephperrott@googlebot