izupet / angular2-counto

Angular 2 package for nice count animations
MIT License
40 stars 13 forks source link

error TS2339: Property '_step' does not exist on type 'Counto'. #2

Closed theunreal closed 8 years ago

theunreal commented 8 years ago

worked for me before, but now trying to npm start my app, and I get this:

node_modules/angular2-counto/src/counto.directive.ts(32,14): error TS2339: Property '_step' does not exist on type 'Counto'.
node_modules/angular2-counto/src/counto.directive.ts(40,53): error TS2339: Property '_step' does not exist on type 'Counto'.
node_modules/angular2-counto/src/counto.directive.ts(42,113): error TS2339: Property '_step' does not exist on type 'Counto'.
node_modules/angular2-counto/src/counto.directive.ts(64,22): error TS2339: Property '_step' does not exist on type 'Counto'.
philliphicks commented 8 years ago

@theunreal you need to declare _step in counto.directive.ts e.g.

export class Counto {
    @Output() countoChange = new EventEmitter();
    private _timer;
    private _duration: number;
    private _countTo: number;
    private _countFrom: number;
    private _step: number; //here