Skip to content

Commit

Permalink
fix(browser): Add missing auto @input
Browse files Browse the repository at this point in the history
Add missing auto @input
  • Loading branch information
jmandreslopez committed Jun 15, 2017
1 parent 54e4d56 commit a77a9fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/odometer/odometer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export class Ng2OdometerComponent implements OnInit, OnDestroy, OnChanges, After
@Input() theme: string = undefined;
@Input() value: number = undefined;
@Input() duration: number = undefined;
@Input() auto: boolean = undefined;
private subscription: Subscription;
private odometer: OdometerModel;

Expand Down Expand Up @@ -124,6 +125,11 @@ export class Ng2OdometerComponent implements OnInit, OnDestroy, OnChanges, After
this.config.duration = this.duration;
}

// Auto
if (!_.isUndefined(this.auto)) {
this.config.auto = this.auto;
}

// Validate theme. If not part of the
// available themes array, use the default
if (!_.includes(this.themes, this.config.theme)) {
Expand Down

0 comments on commit a77a9fa

Please sign in to comment.