I need create a progressbar using uikit. According to uikit this is how it works:

```
<div class="uk-progress">
    <div class="uk-progress-bar" style="width: 40%;">40%</div>
</div>

```

Of course this is a static method. So i have created a function that calculates the percentage in angular:

```
getPercentage: function() {
                var self = this;
                var done = this.downloadStatus.done.replace(/,/g, "");
                var total = this.downloadStatus.total.replace(/,/g, "");
                self.percentage = 0;
                if (parseInt(total) != 0) {
                    self.percentage = (parseInt(done) / parseInt(total)) * 100;
                }
                return self.percentage;
            } 

```

The "style" of the bar determinates its width in the html.. is it possible using ng-style of angular to have a dynamic width? I tried with:

```
<div class="uk-progress">
        <div class="uk-progress-bar" ng-style="{{getPercentage()}}">40%</div>
    </div>

```

but not works. Thanks