Getting ng-reflect-ng-for-of: null

Hi all,

since I upgrade Ionic to 2.3.0 I’m getting this error, when I enter and exit too many times in the app:

  template bindings={
    "ng-reflect-ng-for-of": null

First times, all grid items loads ok, but suddenly the grid it’s empty.

I have in my home page a grid with this structure:

      <ion-row *ngFor="let row of grid_Home">
        <ion-col *ngFor="let i of row" [ngClass]="{'odd': index % 2}">

I checked var grid_Home and returns all items ever.

My package.json has this dependencies:

“dependencies”: {
"@angular/common": “2.4.8”,
"@angular/compiler": “2.4.8”,
"@angular/compiler-cli": “2.4.8”,
"@angular/core": “2.4.8”,
"@angular/forms": “2.4.8”,
"@angular/http": “2.4.8”,
"@angular/platform-browser": “2.4.8”,
"@angular/platform-browser-dynamic": “2.4.8”,
"@angular/platform-server": “2.4.8”,
"@ionic-native/camera": “^3.2.1”,
"@ionic-native/core": “^3.2.1”,
"@ionic-native/deeplinks": “^3.2.1”,
"@ionic-native/facebook": “^3.2.1”,
"@ionic-native/google-maps": “^3.2.2”,
"@ionic-native/image-picker": “^3.2.1”,
"@ionic-native/image-resizer": “^3.2.1”,
"@ionic-native/native-geocoder": “^3.2.3”,
"@ionic-native/native-storage": “^3.2.1”,
"@ionic-native/network": “^3.2.1”,
"@ionic-native/push": “^3.2.1”,
"@ionic-native/social-sharing": “^3.2.1”,
"@ionic-native/splash-screen": “^3.2.1”,
"@ionic-native/status-bar": “^3.2.1”,
"@ionic/storage": “2.0.0”,
“firebase”: “^3.6.7”,
“ionic-angular”: “2.3.0”,
“ionicons”: “3.0.0”,
“rxjs”: “5.0.1”,
“sw-toolbox”: “3.4.0”,
“zone.js”: “0.7.2”
“devDependencies”: {
"@ionic/app-scripts": “1.1.4”,
“typescript”: “2.0.9”

Can someone help me, please?

Thanks in advance!

I’m skeptical of this. I suspect you have a race condition in how grid_Home is being populated, so you’re not really “checking” the same way the template is. Initialize grid_Home to an empty array in its initializer.

Thank you so much for your response.

Finally I have found the problem. I’m using Network plugin with an onConnect subscription and this makes, sometimes, that my app loads my home page twice.