Skip to content

Commit ef59213

Browse files
committed
fix: examples and add typings to package.json
1 parent 8e7d93c commit ef59213

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ npm install angular-svg-round-progressbar --save
1515
Afterwards you need to import the `RoundProgressModule` in your module:
1616

1717
```typescript
18-
import { NgModule } from '@angular/core';
19-
import { RoundProgressModule } from 'angular-svg-round-progressbar';
18+
import {NgModule} from '@angular/core';
19+
import {RoundProgressModule} from 'angular-svg-round-progressbar';
2020

2121
@NgModule({
2222
imports: [RoundProgressModule]
@@ -55,16 +55,16 @@ If you're using SystemJS as your module loader, there is also a UMD bundle at `.
5555
<round-progress
5656
[current]="current"
5757
[max]="max"
58-
[color]="#45ccce"
59-
[background]="#eaeaea"
58+
[color]="'#45ccce'"
59+
[background]="'#eaeaea'"
6060
[radius]="125"
6161
[stroke]="20"
6262
[semicircle]="true"
6363
[rounded]="true"
6464
[clockwise]="false"
6565
[responsive]="false"
6666
[duration]="800"
67-
[animation]="easeInOutQuart"
67+
[animation]="'easeInOutQuart'"
6868
[animationDelay]="0"
6969
(onRender)="doSomethingWithCurrentValue($event)"></round-progress>
7070
```
@@ -76,8 +76,8 @@ service. Whenever an option isn't defined on a `round-progress` element, it's va
7676
from the defaults.
7777

7878
```typescript
79-
import { NgModule } from '@angular/core';
80-
import { RoundProgressModule, RoundProgressConfig } from 'round-progress';
79+
import {NgModule} from '@angular/core';
80+
import {RoundProgressModule, RoundProgressConfig} from 'round-progress';
8181

8282
@NgModule({
8383
imports: [RoundProgressModule]

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-svg-round-progressbar",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Angular module that uses SVG to create a circular progressbar",
55
"scripts": {},
66
"repository": {
@@ -24,15 +24,17 @@
2424
"dist/**/*"
2525
],
2626
"main": "dist/index.js",
27+
"types": "dist/index.d.ts",
2728
"dependencies": {
2829
"@angular/compiler": "^2.0.0",
2930
"@angular/common": "^2.0.0",
3031
"@angular/core": "^2.0.0",
3132
"core-js": "^2.4.1",
3233
"rxjs": "^5.0.0-beta.12",
33-
"zone.js": "^0.6.23"
34+
"zone.js": "^0.7.2"
3435
},
3536
"devDependencies": {
37+
"@angular/compiler-cli": "^2.0.0",
3638
"@angular/forms": "^2.0.0",
3739
"@angular/platform-browser": "^2.0.0",
3840
"@angular/platform-browser-dynamic": "^2.0.2",
@@ -52,6 +54,6 @@
5254
"systemjs": "0.19.38",
5355
"ts-node": "^2.0.0",
5456
"tslint": "^3.13.0",
55-
"typescript": "^2.1.0"
57+
"typescript": "~2.0.10"
5658
}
5759
}

src/round-progress.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ import {RoundProgressEase} from './round-progress.ease';
6363
]
6464
})
6565
export class RoundProgressComponent implements OnChanges {
66-
@ViewChild('path') private _path;
6766
private _lastAnimationId: number = 0;
6867

6968
constructor(
@@ -175,6 +174,7 @@ export class RoundProgressComponent implements OnChanges {
175174
}
176175
}
177176

177+
@ViewChild('path') _path;
178178
@Input() current: number;
179179
@Input() max: number;
180180
@Input() radius: number = this._defaults.get('radius');

0 commit comments

Comments
 (0)