Change the content inside of ion-content without changing the .html


#1

Hi hey ho.
Is there a way to change the content of a view (home view in my case) without changing the entire .html itself.
Let me explain it a little bit

I have a home.html with two sections (rewards and map). I would like to change the content of the home with the help of two kinda buttons, without reloading the entire view.

Actually im using ng-show and ng-hide to change between the two sections, but is there a better way? Thank you


#2

yep use ui-view sections --> you can define own states, that are connected to the ui-views…
look in my event app starter template for tablets:

Check it out and take a look in the states and the base.html


#3

Thanks! It’s works. :smiley: