From 312b93edae556edca6fcc2916a5fd8f755a99870 Mon Sep 17 00:00:00 2001 From: Jamie Perkins Date: Thu, 30 May 2019 16:16:45 -0600 Subject: [PATCH] update version, formatting for PR from @lehoffma --- package.json | 2 +- projects/count-up/package.json | 2 +- projects/count-up/src/lib/count-up.directive.ts | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 8100874..171f793 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/projects/count-up/package.json b/projects/count-up/package.json index 61b54e7..35231d5 100644 --- a/projects/count-up/package.json +++ b/projects/count-up/package.json @@ -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", diff --git a/projects/count-up/src/lib/count-up.directive.ts b/projects/count-up/src/lib/count-up.directive.ts index 74bf433..a7dcbd6 100644 --- a/projects/count-up/src/lib/count-up.directive.ts +++ b/projects/count-up/src/lib/count-up.directive.ts @@ -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; }