@Firoux wrote:
Hey everyone thanks for your time reading and helping !
I’m learning Ionic / Angular and I read a lot of doc and tutorials but there is still things I can’t figure out :
In Angular there are components and modules.
In Ionic there are components and pages (just a component from what I read) and modules.
Components structure are :
- mycomp.component.html -> the HTML template
- mycomp.component.scss -> the styling file
- mycomp.component.spec.ts -> unknown but told it’s not important (testing and stuff ?)
- mycomp.component.ts -> main logic
Modules strucutre are :
- mymodule.module.spec.ts -> same unknown file
- mymodule.module.ts -> module logic
A strange thing is when I create a page from ionic CLI it should then create a component but when creating a page I end up with a mypage.module.ts file so are pages components or modules ?
Posts: 1
Participants: 1