there are graphics

<div ui-jq="easyPieChart" ui-refresh="minutes5" ng-init="minutes5" ui-options="{ easing: 'easeOutBounce', barColor: '{{app.color.accent}}', trackColor: '#f5f5f5', scaleColor: '#eaeaea', lineCap: 'square', lineWidth: 5, size: 120, animate: 1000, percent: {{minutes5}} }"> </div> 

Even everything works, but when loading it, the error "Error: [$parse:syntax] Syntax Error: Token '}' not a primary expression at column 495 of the expression [[{ easing: 'easeOutBounce', barColor: '#695f56', trackColor: '#f5f5f5', scaleColor: '#eaeaea', lineCap: 'square', lineWidth: 5, size: 120, animate: 1000, percent: }]] starting at [}]].

This one is for ANY chart I indicate. if I write ng-init = "minutes5 = 0" then the graphics are always at 0. But if the value is fixed then there is no problem. How to solve this problem?

    2 answers 2

     barColor: '{{app.color.accent}}', 
     percent: {{minutes5}} 

    It probably does not need braces.

      the error is solved simply the final code is not any errors

       ui-options="{ easing: 'easeOutBounce', barColor: '{{app.color.accent}}', trackColor: '#f5f5f5', scaleColor: '#eaeaea', lineCap: 'square', lineWidth: 5, size: 120, animate: 1000, percent: '{{minutes5}}' }" 

      That is, to put the data in parentheses so that during initialization there would be an empty value.