Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angularjs updated value not updating ui-knob (chart) #50

Open
Tusharbalar opened this issue Aug 8, 2017 · 0 comments
Open

Angularjs updated value not updating ui-knob (chart) #50

Tusharbalar opened this issue Aug 8, 2017 · 0 comments

Comments

@Tusharbalar
Copy link

Hello here is my html

<ui-knob id="mainKnob" value="value" options="options1"></ui-knob>

and js

.controller('AwardCtrl', function ($scope, getMembership){
  $scope.value = 10;

// called service
  getMembership.getMembership(userid).then(function(data) { 
       $scope.data = data; 
       $scope.value = parseInt(data.membership);
  });

  $scope.options1 = {
                animate : { enabled: true, duration: 1500, ease: 'bounce' },
                readOnly: true,
                size: 260,
                max: 31,
                subText: {
                    enabled: true,
                    text: 'DAYS LEFT',
                    color: '#f2f2f2;',
                    font: 'auto'
                },
                trackWidth: 55,
                barWidth: 30,
                trackColor: '#e6e6e6',
                barColor: '#81d8cf',
                dynamicOptions: true
            } 
})

But my knob is not updating after $scope.value has changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant