Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49238

Confusion about Ionic v4 architecture

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>