Thank you for this answer you really get me. this is what i’m yalking about
But whenever i i wrote {title=“titlename”, component: “GeneratedPageName”}
i got an error
…/pages/generatedPageName/generatedPageName has no exported member ‘GeneratedPageName’
did you import the GeneratedPageName and are you sure it matches the name of the component you’ve imported? And did you add it to your app.module as well?
I ask for the template of the component for a reason. Could you please post it? Since it seems that the name of your generated page doesn’t match what you’re trying to import/
Okay that was my point. Look at the name of the exported class. It’s actually NosAgencesPage, not NosAgences. So change the imported class in your app.module to import { NosAgencesPage } from ‘…/pages/nos-agences/nos-agences/’
and change NosAgences to NosAgencesPage in your declarations and entrycomponents. Make the same changes in your app.component.ts, i.e. change the imported to NosAgencesPage and set it also correct in this.pages = []
so in the app.module, you must add NosAgencesPage to the declarations and entrycomponents, instead of NosAgences.
the same goes with the app.component.ts, import NosAgencesPage on top, and in the pages array change
the component:NosAgences to component:NosAgencesPage