addMoreItemsData() {
    if (this.index.offset < this.index.length) {
      if (this.index.limit < this.index.length) {
        const tmpLimit = this.index.limit + 3;
        const total = tmpLimit - this.index.length;

        this.index.limit = total === 1 || total === 2 ? tmpLimit - total : tmpLimit;

        this.showListData();
      }
    }
  }
/**
   * Logic for add more items data restaurant when load more button is clicked
   */
Logic for add more items data restaurant when load more button is clicked
Logic for add more items data restaurant when load more button is clicked
addMoreItemsData() {
    if (this.index.offset < this.index.length) {
      if (this.index.limit < this.index.length) {
        const tmpLimit = this.index.limit + 3;
        const total = tmpLimit - this.index.length;
        this.index.limit = total === 1 || total === 2 ? tmpLimit - total : tmpLimit;
        this.showListData();
      }
    }
  }
addMoreItemsData ( ) { if ( this . index . offset < this . index . length ) { if ( this . index . limit < this . index . length ) { const tmpLimit = this . index . limit + 3 ; const total = tmpLimit - this . index . length ; this . index . limit = total === 1 || total === 2 ? tmpLimit - total : tmpLimit ; this . showListData ( ) ; } } }
Logic for add more items data restaurant when load more button is clicked
Logic for add more items data restaurant when load more button is clicked