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
{{ message }}
Repository navigation
Change progress bar value from component instance #18676
Create progress bar dynamically through ComponentFactoryResolver
Try to change value of progress bar instance
Expected Behavior
Changing value and progress bar mode through component instance
Actual Behavior
Value not changing (without any errors). When changing mode of progress bar through component instance also not working. Looks like it is just takes only first defined property values.
Environment
Angular: 9.0.0
CDK/Material: 9.0.0-rc.10
Browser(s): Chrome 80
Operating System (e.g. Windows, macOS, Ubuntu): Windows
@crisbeto
Hi, i've tried to calling change detection but without any result.
Is there available stackblitz template with latest Angular Material packages ? Didn't found it at issue creating moment 😞
I think I'm seeing exactly the same thing here, I've been building a new Angular 9 app and have just spent 3 hours trying to get the progress bar to work!
I have tried binding via the value property and manual changing the value via a @ViewChild reference but neither work.
Activity
crisbeto commentedon Mar 3, 2020
It sounds like you're not triggering change detection so it can't pick up the change, but it's hard to tell without seeing the code.
frct1 commentedon Mar 3, 2020
@crisbeto
Hi, i've tried to calling change detection but without any result.
Is there available stackblitz template with latest Angular Material packages ? Didn't found it at issue creating moment 😞
crisbeto commentedon Mar 3, 2020
If you go to any of the examples in the docs site, you can click the "Edit" icon which will create a Stackblitz from the example.
frct1 commentedon Mar 3, 2020
Oh, got it, thank you so much.
Will create example shortly
frct1 commentedon Mar 3, 2020
Here we go:
ViewChild case (reference to component #bar): https://stackblitz.com/edit/angular-xu8tmk?file=src%2Fapp%2Fprogress-bar-determinate-example.ts
ng-container case: https://stackblitz.com/edit/angular-xu8tmk-rqfimd?file=src%2Fapp%2Fprogress-bar-determinate-example.ts
frct1 commentedon Mar 15, 2020
@crisbeto
Hi, still assigned
needs clarificationlabel on this issue.Do i need to provide more info ?
ChelloApps commentedon Apr 7, 2020
I think I'm seeing exactly the same thing here, I've been building a new Angular 9 app and have just spent 3 hours trying to get the progress bar to work!
I have tried binding via the value property and manual changing the value via a @ViewChild reference but neither work.
frct1 commentedon Apr 7, 2020
@ChelloApps
Yes that's totally unexpected behavior. But devs still keep "needs clarification"...
fix(progress-bar): unable to change value through property setter
fix(material/progress-bar): unable to change value through property s…
fix(material/progress-bar): unable to change value through property s…
fix(material/progress-bar): unable to change value through property s…
fix(material/progress-bar): unable to change value through property s…
fix(material/progress-bar): unable to change value through property s…
fix(material/progress-bar): unable to change value through property s…
fix(material/progress-bar): unable to change value through property s…
fix(material/progress-bar): unable to change value through property s…
angular-automatic-lock-bot commentedon Feb 15, 2022
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.
fix(material/progress-bar): unable to change value through property s…