Skip to content

Change progress bar value from component instance #18676

Closed

Description

@frct1

Reproduction

Steps to reproduce:

  1. Create progress bar dynamically through ComponentFactoryResolver
  2. 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

Activity

  1. crisbeto commented on Mar 3, 2020

    @crisbeto
    Member

    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.

  2. added
    needs: clarification
    on Mar 3, 2020
  3. frct1 commented on Mar 3, 2020

    @frct1
    Author

    @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 😞

  4. crisbeto commented on Mar 3, 2020

    @crisbeto
    Member

    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.

  5. frct1 commented on Mar 3, 2020

    @frct1
    Author

    Oh, got it, thank you so much.
    Will create example shortly

  6. frct1 commented on Mar 15, 2020

    @frct1
    Author

    @crisbeto
    Hi, still assigned needs clarification label on this issue.
    Do i need to provide more info ?

  7. ChelloApps commented on Apr 7, 2020

    @ChelloApps

    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.

  8. frct1 commented on Apr 7, 2020

    @frct1
    Author

    @ChelloApps
    Yes that's totally unexpected behavior. But devs still keep "needs clarification"...

  9. self-assigned this
    on Apr 8, 2020
  10. added
    P3
    and removed
    needs: clarification
    on Apr 8, 2020
  11. added a commit that references this issue on Apr 8, 2020
    e4f0e70
  12. added 2 commits that reference this issue on May 3, 2021
    cac8b48
    56b3320
  13. added a commit that references this issue on Jun 21, 2021
    fd3bac6
  14. added a commit that references this issue on Aug 1, 2021
    eaa48f7
  15. added a commit that references this issue on Sep 3, 2021
    e28e8b2
  16. added a commit that references this issue on Jan 3, 2022
    2cdf34a
  17. added 2 commits that reference this issue on Jan 15, 2022
    652f1e3
    966b2c5
  18. angular-automatic-lock-bot commented on Feb 15, 2022

    @angular-automatic-lock-bot

    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.

  19. locked and limited conversation to collaborators on Feb 15, 2022
  20. added a commit that references this issue on Apr 3, 2022
    cce0180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3area: material/progress-bar

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions