Hi people,
in Ionic 5 I use ion-alert and when this comps are rendered I see <button>
tag instead <ion-button>
.
So, why Ionic don’t use Ionic comps for button?
Or there’s a way to use (that I don’t know).
Thanks in adv
Al
Hi people,
in Ionic 5 I use ion-alert and when this comps are rendered I see <button>
tag instead <ion-button>
.
So, why Ionic don’t use Ionic comps for button?
Or there’s a way to use (that I don’t know).
Thanks in adv
Al
This keeps the styles/components split out from one another. Meaning if you show and IonAlert, you shouldn’t need to wait for all of IonButton (which is a pretty complex component) to load.
There’s examples of this all over in Ionic, but the general ideal is to keep each component pretty isolated.
Ok Mike!
Great explanation!
Thanks