Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ionic 4 ion-button not works

I try to implement a button in ionic 4 with ion-button but there is no style out, where can the problem lay, help.

enter image description here

like image 660
Mohammed Ml Avatar asked Mar 07 '26 12:03

Mohammed Ml


2 Answers

Please use below code

<ion-button color="secondary"></ion-button>

here is document for ionic v4 button. https://beta.ionicframework.com/docs/api/button

like image 81
sirius2013 Avatar answered Mar 10 '26 21:03

sirius2013


I think you started project without angular. if you want to use button in your ionic project better you give ion-button inside a button.

 <button ion-button>Start</button>      

I am sure it will work properly.

like image 33
Mohamed Imran Avatar answered Mar 10 '26 21:03

Mohamed Imran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!