I'm starting in Ionic and AngularJS, I already googlei enough and I did not find anything about this simple doubt.
I can navigate well between ion-view "Page1" and "Page2" using the buttons:
<ion-view view-title="Page1">
<ion-content>
<h1>Page 1</h1>
<a class="button icon icon-right ion-chevron-right" href="#/app/page2">Page 2</a>
</ion-content>
</ion-view>
<ion-view view-title="Page2">
<ion-content>
<h1>Page 2</h1>
<a class="button icon icon-right ion-chevron-right" href="#/app/page1">Page 1</a>
</ion-content>
</ion-view>
But I would like to do this through a function:
function EventoTal(){
carregue("page2");
}
No need to click the button.
In jQuery $(elemento).show();