このようなことをしたいと思います。コンポーネントがロードされたら、1秒後にhtmlがロードされます。 これはコードコンポーネント(ts)です。遅延コンポーネントのhtmlアングル2
import { Component } from '@angular/core';
@Component({
selector: 'pagination',
templateUrl: './app/html/pagination.component.html',
styleUrls: ['app/css/pagination.component.css']
})
export class Pagination {}
templateUrl: './app/html/pagination.component.html',
1秒後に読み込む方法は? 一般的に私のアイデアは、サーバー上での実行後のリクエスト中に、ユーザーに対して遅延(1秒)を伴う負荷を表示することにあります。 誰にもアイデアはありますか?
<div *ngIf="loaded">
...
...
...
</div>
コンポーネントのクラスで:あなたが欲しいものを基本的に
お時間をいただきありがとうございます – Lestoroer