All Projects → servrox → demo-ionic-tab-routing

servrox / demo-ionic-tab-routing

Licence: other
An Ionic project which shows different kinds of route definition for a tab based layout.

Programming Languages

typescript
32286 projects
CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to demo-ionic-tab-routing

ASMapLauncher
ASMapLauncher is a library for iOS written in Swift that helps navigation with various mapping applications.
Stars: ✭ 41 (+20.59%)
Mutual labels:  navigation, routing
organicmaps
🍃 Organic Maps is a free Android & iOS offline maps app for travelers, tourists, hikers, and cyclists. It uses crowd-sourced OpenStreetMap data and is developed with love by MapsWithMe (MapsMe) founders and our community. No ads, no tracking, no data collection, no crapware. Your donations and positive reviews motivate and inspire our small team!
Stars: ✭ 3,689 (+10750%)
Mutual labels:  navigation, routing
Nested Navigation Demo Flutter
Nested navigation with BottomNavigationBar
Stars: ✭ 367 (+979.41%)
Mutual labels:  navigation, routing
angular-seo
Angular 13 Example SEO Search engine optimization + PWA + SSR + Lazyloading
Stars: ✭ 58 (+70.59%)
Mutual labels:  routing, lazy-loading
Swiftuirouter
Routing in SwiftUI
Stars: ✭ 242 (+611.76%)
Mutual labels:  navigation, routing
go router
The purpose of the go_router for Flutter is to use declarative routes to reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), handling deep linking from Android, iOS and the web while still allowing an easy-to-use developer experience.
Stars: ✭ 380 (+1017.65%)
Mutual labels:  navigation, routing
Findme
An ARKit App that can help your friends to find you
Stars: ✭ 483 (+1320.59%)
Mutual labels:  navigation, routing
routing-py
🌎 Python library to access all public routing, isochrones and matrix APIs in a consistent manner.
Stars: ✭ 106 (+211.76%)
Mutual labels:  navigation, routing
Url Parser
Parse URLs into nicely structured data
Stars: ✭ 118 (+247.06%)
Mutual labels:  navigation, routing
Mapbox Directions Swift
Traffic-aware directions and map matching in Swift on iOS, macOS, tvOS, watchOS, and Linux
Stars: ✭ 115 (+238.24%)
Mutual labels:  navigation, routing
angular-ssr
Angular 14 Example SSR (Server side rendering)
Stars: ✭ 92 (+170.59%)
Mutual labels:  routing, lazy-loading
easyRNRoute
https://medium.com/@kevinle/comprehensive-routing-and-navigation-in-react-native-made-easy-6383e6cdc293#.nttfeeq3p
Stars: ✭ 25 (-26.47%)
Mutual labels:  navigation, routing
Router
🛣 Simple Navigation for iOS
Stars: ✭ 438 (+1188.24%)
Mutual labels:  navigation, routing
Corenavigation
📱📲 Navigate between view controllers with ease. 💫 🔜 More stable version (written in Swift 5) coming soon.
Stars: ✭ 69 (+102.94%)
Mutual labels:  navigation, routing
angular-lazy-loading
Angular 15 & React 18 Examples Lazy Loading
Stars: ✭ 39 (+14.71%)
Mutual labels:  routing, lazy-loading
Router-deprecated
🛣 Simple Navigation for iOS - ⚠️ Deprecated
Stars: ✭ 458 (+1247.06%)
Mutual labels:  navigation, routing
DDPG
End to End Mobile Robot Navigation using DDPG (Continuous Control with Deep Reinforcement Learning) based on Tensorflow + Gazebo
Stars: ✭ 41 (+20.59%)
Mutual labels:  navigation
GTFS
.NET implementation of a General Transit Feed Specification (GTFS) feed parser.
Stars: ✭ 55 (+61.76%)
Mutual labels:  routing
ChatApp
Chat app based on Firebase tools.
Stars: ✭ 88 (+158.82%)
Mutual labels:  navigation
angular-scrollspy
A simple lightweight library for Angular which automatically updates links to indicate the currently active section in the viewport
Stars: ✭ 34 (+0%)
Mutual labels:  navigation

Demo: Ionic project with a tab based layout
which shows different kinds of route definitions
for lazy modules

Live Demo

Explanation

The example includes two kinds of route definition,
which are shown in Tab One and Tab Two.
You can also see how to dynamically adjust the routing to use pages in different tabs.

The normal page flow for each tab is Tab -> Profile -> Profile Settings.
The module flow is following: App -> Tabs -> Tab -> Profile -> ProfileSettings.
Each page is a lazy loaded module.
For the navigation to the previous page I used the ion-back-button.
Each tab is stateful, which means that displayed pages are kept at a tab change.

Because the profile page can be called by tab one and tab two,
there is some logic to make back and forth navigation work correctly.

Route definition for Tab One

For Tab One the whole page flow is defined in one file (s. tabs.router.module.ts).
It is also possible to move the whole routing in app-routing.module.ts.

Route definition for Tab Two

For Tab Two there's only one one route definiton in tabs.router.module.ts:
TabsModule -> Tab2PageModule.
Every further route is defined in the then loaded module,
for this demo it means that the modules loaded behind Tab Two defining two routes.

First a no-name-route which loads the corresponding component.
(For the ProfilePageModule that means the ProfilePage.)
Second the page-module we can route to.
(For the ProfilePageModule that means the ProfileSettingsPageModule.)

Important tip

With Ionic 4.0.0-beta.18 there was breaking changes for angular tabs.
The usage of ion-tab was removed and it's not necessary to use named outlets.

A common mistake is that not all continuing routes (child-routes) are defined in the children-block.
If you don't define it in the child-block routing may seem to work,
but things like ion-back-button are fucked up.

Router Tree

Router Tree

Getting Started

git clone https://github.com/servrox/demo-ionic-tab-routing.git
cd demo-ionic-tab-routing
yarn
ionic serve

Built With

Authors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].