Skip to content

Commit 4181e10

Browse files
author
crisbeto
committed
fix for when the options are inherited from the provider
1 parent 54bd1a9 commit 4181e10

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/roundProgress.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ angular.module('angular-svg-round-progress')
4141
var lastAnimationId;
4242
var parentChangedListener;
4343

44+
scope.getOptions = function(){
45+
return options;
46+
};
47+
4448
var renderCircle = function(){
4549
var isSemicircle = options.semi;
4650
var responsive = options.responsive;

src/roundProgressService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ angular.module('angular-svg-round-progress').service('roundProgressService', [fu
3131

3232
while(!parent.hasClass('round-progress-wrapper')){
3333
if(service.isDirective(parent)){
34-
parentScope = parent.scope().$parent;
34+
parentScope = parent.scope().$parent.getOptions();
3535
value += ((+parentScope.offset || 0) + (+parentScope.stroke || 0));
3636
}
3737

0 commit comments

Comments
 (0)