khan Farman
khan Farman

Reputation: 366

Ionic 4 - ionic page vs ionic component

Can anyone tell me what is the difference between the Ionic page and Ionic Component in Ionic 4 and when to use them? Also, they have the same @component decorator so its a little bit confusing in which case should I use either of them.

Angular doesn't have an entity like pages then why this concept have been introduced in Ionic 4 with the same decorator as the component.

Upvotes: 0

Views: 636

Answers (1)

Kishore Kadiyala
Kishore Kadiyala

Reputation: 164

Until Ionic 3 , Ionic is used to manage its own routing, that's why it has a concept of pages, In Ionic 4, it ditched its own routing and uses native Angular routing, that's the only difference, page and component is just part of terminology.

Upvotes: 1

Related Questions