Angular 4 renderer2 setStyle not working : <p>in a component, im attempting to target a dom node and change it's style but this does not work, can anyone tell me what i am doing wrong here?</p>

<pre><code>@Input() progress:number = 0;

...

ngOnChanges() {
    this.progressInnerEl = this.elRef.nativeElement.querySelector('.progress-inner');
    this.renderer.setStyle(this.progressInnerEl, 'width', this.progress+'%');
  }
</code></pre>
