Error on ionic refresher in custom component


#1

I got a custom componet that manage a list of object, with ionic infinite scroll and ionic refresher.
It all worked fine ntil I moved everything to a custom compontent for the sake of a clean code.
Here the error:

Uncaught (in promise): Error: Template parse errors:
No provider for Content ("[ERROR ->]<ion-refresher (ionRefresh)=“refresh($event)”>

</io"): ng:///ComponentsModule/ListComponent.html@0:0
Error: Template parse errors:
No provider for Content ("[ERROR ->]<ion-refresher (ionRefresh)=“refresh($event)”>

</io"):

Here the code:

<ion-refresher (ionRefresh)=“refresh($event)”>

<ion-list *ngIf=“itemList?.lenght != 0”>

    <ion-item-sliding *ngFor="let item of itemList" (ionSwipe)="itemTapped(item)">
  
      <button ion-item (click)="itemTapped(item)">
        <div class="item-note" *ngIf="item?.nome">
          {{item?.nome}}
        </div>
        <div class="item-note" *ngIf="item?.nome">
          {{item?.gruppo}}
        </div>
        <div class="item-note" *ngIf="item?.idmagazzino">
            {{item?.idmagazzino}}
          </div>
      </button>
  
      <ion-item-options side="right" icon-start>
        <button ion-button class="delete-button">
          <ion-icon class="delete-button-element" name="trash"></ion-icon>
          <span class="delete-button-element"> Delete</span>
        </button>
      </ion-item-options>
  
      <ion-item-options side="left" icon-start>
        <button ion-button expandable class="edit-button">
          <ion-icon class="edit-button-element" name="create"></ion-icon>
          <span class="edit-button-element"> Edit</span>
        </button>
      </ion-item-options>
  
    </ion-item-sliding>

<ion-infinite-scroll threshold=“20%” (ionInfinite)="$event.waitFor(doInfinite())">


here enviroment info:

cli packages: (C:\Users\eugenio\workspace\ProgestNow\node_modules)

@ionic/cli-utils  : 1.10.2
ionic (Ionic CLI) : 3.10.3

local packages:

@ionic/app-scripts : 1.3.12
Ionic Framework    : ionic-angular 3.5.0

System:

Node : v6.10.3
npm  : 3.10.10
OS   : Windows 10

#2

This worries me. I know Ionic recommends jamming all custom components into a module, but I really dislike doing that. If you insist, make sure you are importing IonicModule in it.