aiao-io/aiao

View on GitHub
libs/lazy-component/README.en.md

Summary

Maintainability
Test Coverage
# @aiao/lazy-component

[![npm](https://img.shields.io/npm/v/@aiao/lazy-component?label=&style=flat-square)](https://www.npmjs.com/@aiao/lazy-component)

lazy load any `module`'s `component`. https://github.com/angular/angular/issues/14324 issue's solution

> 此方法只适用 angular 8 或是 angular 9 非 ivy

## Use Case

Present any module's component by modal, most used in the backend to manipulate data frequently.

## Install

### Angular 8

```console
yarn add @aiao/lazy-component@1.4
```

### Angular 9 非 ivy

```console
yarn add @aiao/lazy-component
```

## Usage

Integration: [integration/lazy-component](/integration/lazy-component)