![](/img/trans.png)
[英]How to get the current angular theme's color of a specific component (e.g. button hover background)?
[英]How to update a dynamically created Angular Material Component's property binding (e.g. ProgressBar or Spinner)
我想從指令中創建和控制 Material ProgressBar。
我無法更新 ProgressBar 的value
屬性(盡管其他所有內容,例如mode
)。
Stackblitz: https://stackblitz.com/edit/angular-mat-progress-bar-directive?file=src/app/progress.directive.ts
MatSpinner 顯示相同的行為。
這絕對是一個錯誤; 我剛剛在 GitHub 上找到了相關問題: https://github.com/angular/components/issues/18676
還有一個 PR 准備好了,所以這應該在即將發布的版本之一中修復。
目前沒有解決方法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.