Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Ionic 2 reusable page templates

$
0
0

@bjm88 wrote:

I started with Ionic2 trying to mix a tab main page layout that has a menu with also sub pages having more of the drill in and back button layout. So I have two or three primary layouts, any given page will have one. In the starter tutorial I was surprised there are 3 pages and each page's template html has repeating markup..ie

> <ion-navbar *navbar>
>   <ion-title>Tab 1</ion-title>
> </ion-navbar>

> <ion-content padding class="page1">
>   <h2>Welcome to Ionic!</h2>
>   <p>
>     This starter project comes with simple tabs-based layout for apps
>     that are going to primarily use a Tabbed UI.
>   </p>
>   <p>
>     Take a look at the <code>www/app/</code> directory to add or change tabs,
>     update any existing page or create new pages.
>   </p>
> </ion-content>

I do NOT want to have this layout repeated on each page. How can I have a given page use a certain template/layout. So what Ionic is calling the "template" to me is really specific to that page, but any given page should be injected into an overall template that ensures navigation, headers, footers, etc are common and managed in one place. Can anyone point to example please...., thanks.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>