Socket
Socket
Sign inDemoInstall

ngx-data-loader

Package Overview
Dependencies
5
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.2 to 4.0.0

2

lib/data/data.component.d.ts

@@ -11,3 +11,3 @@ import { OnInit, TemplateRef } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<DataComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DataComponent, "ngx-data-loader-data", never, { "loadedTemplate": "loadedTemplate"; "data": "data"; "loading": "loading"; "showStaleData": "showStaleData"; }, {}, never, never, false>;
static ɵcmp: i0.ɵɵComponentDeclaration<DataComponent, "ngx-data-loader-data", never, { "loadedTemplate": "loadedTemplate"; "data": "data"; "loading": "loading"; "showStaleData": "showStaleData"; }, {}, never, never, false, never>;
}

@@ -11,3 +11,3 @@ import { EventEmitter, OnInit, TemplateRef } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<ErrorComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorComponent, "ngx-data-loader-error", never, { "errorTemplate": "errorTemplate"; "error": "error"; }, { "reload": "reload"; }, never, never, false>;
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorComponent, "ngx-data-loader-error", never, { "errorTemplate": "errorTemplate"; "error": "error"; }, { "reload": "reload"; }, never, never, false, never>;
}

@@ -11,3 +11,3 @@ import { OnInit, TemplateRef } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<LoadingComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingComponent, "ngx-data-loader-loading", never, { "loadingTemplate": "loadingTemplate"; "loadingTemplateDelay": "loadingTemplateDelay"; }, {}, never, never, false>;
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingComponent, "ngx-data-loader-loading", never, { "loadingTemplate": "loadingTemplate"; "loadingTemplateDelay": "loadingTemplateDelay"; }, {}, never, never, false, never>;
}

@@ -112,3 +112,3 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<NgxDataLoaderComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxDataLoaderComponent<any>, "ngx-data-loader", never, { "loadFn": "loadFn"; "loadFnArgs": "loadFnArgs"; "initialData": "initialData"; "debounceTime": "debounceTime"; "retries": "retries"; "retryDelay": "retryDelay"; "showStaleData": "showStaleData"; "loadingTemplateDelay": "loadingTemplateDelay"; "timeout": "timeout"; }, { "dataLoaded": "dataLoaded"; "error": "error"; "loadAttemptFinished": "loadAttemptFinished"; "loadAttemptStarted": "loadAttemptStarted"; "loadingStateChange": "loadingStateChange"; }, ["loadedTemplate", "errorTemplate", "loadingTemplate"], never, false>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxDataLoaderComponent<any>, "ngx-data-loader", never, { "loadFn": "loadFn"; "loadFnArgs": "loadFnArgs"; "initialData": "initialData"; "debounceTime": "debounceTime"; "retries": "retries"; "retryDelay": "retryDelay"; "showStaleData": "showStaleData"; "loadingTemplateDelay": "loadingTemplateDelay"; "timeout": "timeout"; }, { "dataLoaded": "dataLoaded"; "error": "error"; "loadAttemptFinished": "loadAttemptFinished"; "loadAttemptStarted": "loadAttemptStarted"; "loadingStateChange": "loadingStateChange"; }, ["loadedTemplate", "errorTemplate", "loadingTemplate"], never, false, never>;
}
{
"name": "ngx-data-loader",
"version": "3.0.2",
"version": "4.0.0",
"peerDependencies": {
"@angular/common": "^14.1.0",
"@angular/core": "^14.1.0"
"@angular/common": ">=15.0.0",
"@angular/core": ">=15.0.0",
"rxjs": ">=7.0.0"
},

@@ -8,0 +9,0 @@ "dependencies": {

# NgxDataLoader
Lightweight Angular 14+ component for easy async data loading.
Lightweight Angular 15+ component for easy async data loading.

@@ -88,7 +88,7 @@ [![Build status](https://img.shields.io/github/workflow/status/rensjaspers/ngx-data-loader/CI)](https://github.com/rensjaspers/ngx-data-loader/actions/workflows/main.yml)

| Name | Description | Template outlet context |
| ------------------------------------------------------------------------------- | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| `@ContentChild('loaded')`<br />`loadedTemplate?: TemplateRef<unknown>` | Template to be displayed when the data is loaded. | `$implicit: T`: the resolved data.<br />`loading: boolean`: whether the data is reloading (only available if `showStaleData` is set to `true`). |
| Name | Description | Template outlet context |
| ------------------------------------------------------------------------ | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| `@ContentChild('loaded')`<br />`loadedTemplate?: TemplateRef<unknown>` | Template to be displayed when the data has loaded. | `$implicit: T`: the resolved data.<br />`loading: boolean`: whether the data is reloading (only available if `showStaleData` is set to `true`). |
| `@ContentChild('loading')`<br />`loadingTemplate?: TemplateRef<unknown>` | Template to be displayed when the data is loading. | _(none)_ |
| `@ContentChild('error')`<br />`errorTemplate?: TemplateRef<unknown>` | Template to be displayed when the data failed to load. | `$implicit: Error<unknown>`: the error object.<br />`retry: () => void`: can be called to trigger a retry. |
| `@ContentChild('error')`<br />`errorTemplate?: TemplateRef<unknown>` | Template to be displayed when the data failed to load. | `$implicit: Error<unknown>`: the error object.<br />`retry: () => void`: can be called to trigger a retry. |

@@ -95,0 +95,0 @@ ## Properties

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc