ngx-countdown
Advanced tools
Comparing version 17.0.0 to 17.1.0
import { OnChanges, SimpleChanges, OnDestroy, EventEmitter, OnInit, SimpleChange, ChangeDetectorRef, TemplateRef, NgZone } from '@angular/core'; | ||
import { CountdownConfig, CountdownEvent, CountdownItem } from './interfaces'; | ||
import { CountdownTimer } from './countdown.timer'; | ||
import { CountdownGlobalConfig } from './countdown.config'; | ||
import * as i0 from "@angular/core"; | ||
@@ -9,5 +8,5 @@ export declare class CountdownComponent implements OnInit, OnChanges, OnDestroy { | ||
private timer; | ||
private defCog; | ||
private cdr; | ||
private ngZone; | ||
private defCog?; | ||
private frequency; | ||
@@ -26,3 +25,3 @@ private _notify; | ||
readonly event: EventEmitter<CountdownEvent>; | ||
constructor(locale: string, timer: CountdownTimer, defCog: CountdownGlobalConfig, cdr: ChangeDetectorRef, ngZone: NgZone); | ||
constructor(locale: string, timer: CountdownTimer, cdr: ChangeDetectorRef, ngZone: NgZone, defCog?: CountdownConfig | undefined); | ||
/** | ||
@@ -64,4 +63,4 @@ * Start countdown, you must manually call when `demand: false` | ||
} & SimpleChanges): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<CountdownComponent, never>; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<CountdownComponent, [null, null, null, null, { optional: true; }]>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<CountdownComponent, "countdown", never, { "config": { "alias": "config"; "required": true; }; "render": { "alias": "render"; "required": false; }; }, { "event": "event"; }, never, never, true, never>; | ||
} |
{ | ||
"name": "ngx-countdown", | ||
"version": "17.0.0", | ||
"version": "17.1.0", | ||
"description": "Simple, easy and performance countdown for angular", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
export * from './interfaces'; | ||
export * from './countdown.component'; | ||
export * from './countdown.timer'; | ||
export * from './countdown.config'; | ||
export * from './countdown.module'; | ||
export * from './provide'; |
@@ -103,13 +103,5 @@ # ngx-countdown | ||
```ts | ||
function countdownConfigFactory(): CountdownConfig { | ||
return { format: `mm:ss` }; | ||
} | ||
@NgModule({ | ||
imports: [ CountdownModule ], | ||
providers: [ | ||
{ provide: CountdownGlobalConfig, useFactory: countdownConfigFactory } | ||
], | ||
}) | ||
export class AppDemoModule {} | ||
bootstrapApplication(AppComponent, { | ||
providers: [provideCountdown({ format: `mm:ss` })], | ||
}).catch((err) => console.error(err)); | ||
``` | ||
@@ -116,0 +108,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85579
820
120