Skip to content

Commit

Permalink
refactor(progressbar): remove @HostBinding()
Browse files Browse the repository at this point in the history
  • Loading branch information
maxokorokov committed Nov 27, 2023
1 parent 15ccfae commit b5d5feb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/progressbar/progressbar.ts
@@ -1,4 +1,4 @@
import { ChangeDetectionStrategy, Component, HostBinding, inject, Input, ViewEncapsulation } from '@angular/core';
import { ChangeDetectionStrategy, Component, inject, Input, ViewEncapsulation } from '@angular/core';
import { getValueInRange, isNumber } from '../util/util';
import { NgbProgressbarConfig } from './progressbar-config';
import { PercentPipe } from '@angular/common';
Expand All @@ -20,6 +20,7 @@ import { PercentPipe } from '@angular/common';
'[attr.aria-valuemax]': 'max',
'[attr.aria-label]': 'ariaLabel',
'[style.width.%]': 'stacked ? getPercentValue() : null',
'[style.height]': 'height',
},
template: `
<div
Expand Down Expand Up @@ -110,7 +111,7 @@ export class NgbProgressbar {
*
* Accepts any valid CSS height values, ex. `"2rem"`
*/
@Input() @HostBinding('style.height') height = this._config.height;
@Input() height = this._config.height;

constructor() {
this.max = this._config.max;
Expand Down

0 comments on commit b5d5feb

Please sign in to comment.