Hi,
I have a sample app with an ion-list that fetches some rows from a test database. I want to have a button in this view that lets me “toggle” the ion-list from regular ion-item to ion-checkbox. What would be the best approach?
Thanks
Hi,
I have a sample app with an ion-list that fetches some rows from a test database. I want to have a button in this view that lets me “toggle” the ion-list from regular ion-item to ion-checkbox. What would be the best approach?
Thanks
use ng-show with check box to be attached ion-item. The expression to ng-show shall be the model value of toggle button. This definitely will help you to change the view during the run time as well.
Perfect! Thank you, I will try it out