File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
- [ ![ npm] ( https://img.shields.io/npm/l/angular-svg-progress.svg )] ( https://www.npmjs.com/package/angular-svg-progress )
2
- [ ![ npm] ( https://img.shields.io/npm/v/angular-svg-progress.svg?style=flat-square )] ( https://www.npmjs.com/package/angular-svg-progress )
3
- [ ![ npm] ( https://badgen.net/npm/dm/angular-svg-progress )] ( https://www.npmjs.com/package/angular-svg-progress )
4
- [ ![ npm] ( https://badgen.net/bundlephobia/minzip/angular-svg-progress )] ( https://www.npmjs.com/package/angular-svg-progress )
5
- ##### 1.7 min zipped lightweight progress bar
6
-
1
+ https://badgen.net/bundlephobia/minzip/angular-svg-progress
2
+ 1.7 min zipped lightweight progress bar
7
3
# Angular SVG Progress
8
4
** SVG** Progress component for angular and ionic framework consist of bar, heart and circular loaders.
9
5
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angular-svg-progress" ,
3
- "version" : " 1.1.2 " ,
3
+ "version" : " 1.1.3 " ,
4
4
"peerDependencies" : {
5
5
"@angular/common" : " ^7.2.0" ,
6
6
"@angular/core" : " ^7.2.0"
Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ export class AngularSvgProgressComponent implements OnInit {
57
57
console . log ( this . direction , this . x2 , this . y1 ) ;
58
58
}
59
59
ngOnChanges ( changes : SimpleChanges ) {
60
- const { currentValue, previousValue } = changes [ 'svgProgress' ] ;
60
+ const { currentValue, previousValue } = changes [ 'svgProgress' ] || {
61
+ currentValue : 0 , previousValue : 0
62
+ } ;
61
63
this . progress = currentValue . toString ( ) + `%` ;
62
64
if ( this . shape === 'circle' ) {
63
65
this . strokeDashoffset = this . circumference * ( 1 - ( this . svgProgress / 100 ) ) ;
You can’t perform that action at this time.
0 commit comments