I don’t see where currentPlace is declared, but I’m guessing you didn’t bother initializing it. Always initialize every property that is referenced from a template, even if it is just to an empty dummy like {} or [].
effectivement je n’ai pas posté tout le code.
j’ai déclaré comme suit:
import { Component, OnInit } from ‘@angular/core’;
import {LocationsService} from ‘…/services/locations.service’;
import {Place} from ‘…/model/place.model’;
currentPlace may not be private. Any property accessed by templates must be public. Additionally, yes, you must move your initialization of currentPlace to the constructor. ngOnInit is too late.
merci beaucoup d’avoir pris le temps de me repondre. Cependant, meme si j’ai change currentPlace en Public aussi l’erreur persiste toujours.
pourtant je suivais un tuto fidelement.