I have a UI Bootstrap progressbar that I'm trying to hook up to messages from a SignalR hub. The idea is that the server-side hub sends me progress percentages that are reflected in the progress bar. The problem I have is that I see the messages coming into the browser from the server, but the progressbar bar doesn't update. I created a dummy div before the progressbar to ensure something value is coming in from the server.
Here's my markup:
<div id="dummybar" style="border: #000 1px solid; width:300px;"></div>
<progressbar animate="true" value="vm.progressValue">{{vm.progressValue}}</progressbar>
And in my controller:
var vm = this;
vm.progressValue = 55; // test value to start
var hub = $.connection.progressHub;
hub.client.updateGaugeBar = function(percentage) {
vm.progressValue = Number(percentage);
log('Progress: ' + vm.progressValue + '%', null, false);
$("#bar").html(vm.progressValue);
};
I see the html of #dummybar getting live updates, so the hub is configured properly and it proves vm.progressValue is correct when it should be.
But why isn't the progressbar getting those updates as well? It is stuck on 55% from it's initial rendering.
Thanks for any advice! Corey.