I want to add an ion element dynamically on page or remove from page when click on ion-button


#1

Hello everyone, I want to add an ion element dynamically on a page or remove from a page when clicking on ion-button,
I have tried using ionic component but I am fail to build, anyone help please!


#2

Don’t think of “adding elements”, or you will be constantly miserable. The template displays whatever is in the controller, so do your adding in the controller.