Closed akinjide closed 6 years ago
This is a weird one. I don't see why the ng-class
wouldn't be triggered by the value of lxValue
while the ternary expression is.
The only downside of the current ng-class
is that when lxValue
is 0
, it would be indeterminate
.
I'm not a big fan of using this type of expression in interpolation inside of classes instead of ng-class
.
Can you try by using :
ng-class="{ 'determinate': lxProgress.lxValue !== undefined, 'indeterminate'; lxProgress.lxValue === undefined }"
instead ?
Thanks for your contribution!
Browsers Chromium v67.0.3387.0 Safari v11.0.2
The ScreenShot above shows
div.progress-container--indeterminate
class not activated. So I switched to using?:
operator, which activates? 'determinate' : 'indeterminate'
depending on thelx-value
value, set as an attribute by the user.The ScreenShot above shows
div.progress-container--indeterminate
activated and running fine.Note: Bug and Fixes on both browsers listed above.