🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ngx-countdown

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-countdown - npm Package Compare versions

Comparing version

to
17.1.0

esm2022/provide.mjs

7

countdown.component.d.ts
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