Load new page/view on button click


#1

The code is being rendered in the forum
Using the TABS sample, I want to add a button to the tab-account.html as below.
I created a welcome.html in the templates folder and tried to link to it. No joy.
I’m sure this is something very basic that I’m missing.

<ion-view title="Account">
  <ion-content class="has-header padding">
    <a class="button icon icon-right ion-chevron-right" href="#/welcome.html">Welcome</a>
  </ion-content>
</ion-view>

#3

See this link : Creating A Link to a New Page - Nav Bar disappears

Don’t use an href to a template file.


#4

Thanks; that was helpful. I’m curious about the “don’t use href” comment. I see it used in ionic’s codepen examples? e.g. http://codepen.io/ionic/pen/AGnqc