Description

Holds the data and status of a lazy loaded file.

Index

async/src/lazy-loader/lazy-loaded-file.ts

Properties

Properties

completed
completed: boolean
Type: boolean

Indicates whether download and execution of the script has been completed.

element
element: ElementRef | null
Type: ElementRef | null

The <script> or <link> element added to the document.

type
type: "script" | "style"
Type: "script" | "style"

The type of the loaded file.

url
url: string
Type: string

The url of the script being loaded.

import { ElementRef } from '@angular/core';

/**
 * Holds the data and status of a lazy loaded file.
 */
export interface LazyLoadedFile
{
    /**
     * The type of the loaded file.
     */
    type: 'script' | 'style';

    /**
     * The url of the script being loaded.
     */
    url: string;

    /**
     * Indicates whether download and execution of the script has been completed.
     */
    completed: boolean;

    /**
     * The `<script>` or `<link>` element added to the document.
     */
    element: ElementRef | null;
}

results matching ""

    No results matching ""