mariuszfoltak / angular2-datatable

DataTable - Simple table component with sorting and pagination for Angular2
202 stars 182 forks source link

Delay/ slow respond to UI #7

Open lkc513 opened 8 years ago

lkc513 commented 8 years ago

Hi,

I tried the example from Angular2 sample to try slow down the data respond after 5 second but the table unable to display even after 5 second.

I tried to fix it by using "NgIf" as below...

<table *ngIf="data" class="table table-striped table-bordered dt-responsive nowrap" [mfData]="data" #mf="mfDataTable">

May i know is this a right way to handle or you do have any plan to enhance but not this moment?

Thank You

mariuszfoltak commented 8 years ago

Can you post some example?

lkc513 commented 8 years ago

Below is the example:

<table *ngIf="data" class="table table-striped table-bordered dt-responsive nowrap" [mfData]="data" #mf="mfDataTable">