ng2-smart-table with paging from back-end (Spring)

后端 未结 4 1976
说谎
说谎 2021-01-17 20:39

I am using a back-end server (Java Spring) that has Pager enabled. I am loading 100 records per page on a HTTP call.

On angular2 service, it is consuming the API ca

4条回答
  •  一整个雨季
    2021-01-17 21:11

    Try to set the settings to the smart-table like this

    
    

    And at your component, define the settings, something like this:

      public settings: TableSettings = new TableSettings();
    
      ngOnInit(): void {
          ...
        this.settings.pager.display = true;
        this.settings.pager.perPage = 100;
        ...
      }

提交回复
热议问题