aiao-io/aiao

View on GitHub
apps/dev-lazy-component/src/app/app.component.html

Summary

Maintainability
Test Coverage
<ul>
  <li>
    <h2><a routerLink="/">App Module</a></h2>
  </li>
  <li>
    <h2><a routerLink="/home">Home Module</a></h2>
  </li>
</ul>

<h1>只有 ivy 模式可以直接打开</h1>
<button (click)="openDialogDirectly()">直接打开 home 模块的弹框</button>
<h1>都可以直接打开,会先加载对应的 module</h1>
<button (click)="openDialog()">用 LazyComponentLoader 打开 HomeModule 模块的弹框</button>
<button (click)="openAloneDialog()">用 LazyComponentLoader 打开 AloneDialogModule 模块的弹框</button>
<router-outlet></router-outlet>