Skip to content

Commit

Permalink
update version, formatting for PR from @lehoffma
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Perkins committed May 30, 2019
1 parent b51d0eb commit 312b93e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build:countup": "ng-packagr -p projects/count-up/ng-package.json",
"pack:countup": "cd dist/count-up && yarn pack && cd ../..",
"package:countup": "yarn build:countup && yarn pack:countup",
"install-tarball": "yarn add file:./dist/count-up/countup.js-angular2-v7.2.1.tgz",
"install-tarball": "yarn add file:./dist/count-up/countup.js-angular2-v7.3.0.tgz",
"all": "yarn package:countup && yarn install-tarball",
"reset:countup": "yarn remove countup.js-angular2",
"test": "jest",
Expand Down
2 changes: 1 addition & 1 deletion projects/count-up/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "countup.js-angular2",
"version": "7.2.1",
"version": "7.3.0",
"description": "Animates a numerical value by counting to it.",
"repository": {
"type": "git",
Expand Down
8 changes: 6 additions & 2 deletions projects/count-up/src/lib/count-up.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ export class CountUpDirective implements OnChanges {
}
}

constructor(private el: ElementRef, @Inject(PLATFORM_ID) private platformId: Object, private zone: NgZone) {}
constructor(
private el: ElementRef,
private zone: NgZone,
@Inject(PLATFORM_ID) private platformId: Object,
) {}

ngOnChanges(changes: SimpleChanges) {
// we don't need to animate anything on the server since nobody is there to see it
// don't animate server-side (universal)
if (!isPlatformBrowser(this.platformId)) {
return;
}
Expand Down

0 comments on commit 312b93e

Please sign in to comment.