Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrewjbateman/ionic-angular-swipetabs

:clipboard: Ionic tutorial app from Simon Grimm of the Ionic Academy
https://github.com/andrewjbateman/ionic-angular-swipetabs

angular angular13 html5 ionic ionic-academy ionic-swipeable-tabs ionic6 scss-styles swipeable-tabs-navigation tutorial-code typescript4

Last synced: 6 days ago
JSON representation

:clipboard: Ionic tutorial app from Simon Grimm of the Ionic Academy

Awesome Lists containing this project

README

        

# :zap: Ionic Swipeable Tabs

* Ionic-Angular tutorial app with swipeable tab navigation.
* **Note:** to open web links in a new window use: _ctrl+click on link_

![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/ionic-angular-swipeTabs?style=plastic)
![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/ionic-angular-swipeTabs?style=plastic)
![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/ionic-angular-swipeTabs?style=plastic)
![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/ionic-angular-swipeTabs?style=plastic)

* [:zap: Ionic Swipeable Tabs](#zap-ionic-swipeable-tabs)
* [:books: General info](#books-general-info)
* [:camera: Screenshots](#camera-screenshots)
* [:signal_strength: Technologies](#signal_strength-technologies)
* [:floppy_disk: Setup](#floppy_disk-setup)
* [:computer: Code Examples](#computer-code-examples)
* [:cool: Features](#cool-features)
* [:clipboard: Status & To-do list](#clipboard-status--to-do-list)
* [:clap: Inspiration](#clap-inspiration)
* [:file_folder: License](#file_folder-license)
* [:envelope: Contact](#envelope-contact)

## :books: General info

* User can swipe left or right to switch between News, Account and About tab pages.
* News page has 3 buttons that open News Details and About pages.

## :camera: Screenshots

![Ionic page](./img/home.png)

## :signal_strength: Technologies

* [Ionic v6](https://ionicframework.com/)
* [Angular v13](https://angular.io/)
* [Ionic/angular v6](https://www.npmjs.com/package/@ionic/angular) including [ion-nav-link](https://ionicframework.com/docs/api/nav-link)
* [@ionic-super-tabs/angular v7](https://www.npmjs.com/package/@ionic-super-tabs/angular) - last published 2 years ago and I cannot see any documentation. [Github Examples here](https://github.com/zyra/ionic-super-tabs/blob/master/doc-pages/usage/angular.md)

## :floppy_disk: Setup

* Run `npm i` to install dependencies
* Run `ng lint` to run linting. All files pass linting (ident check disabled in `tslint.json`).
* To start the server on _localhost://8100_ type: `ionic serve`

## :computer: Code Examples

* sets `canGoBack` boolean variable to `true` when there is an Ionic navigation event.

```typescript
ngAfterViewInit() {
this.newsNav.ionNavDidChange.subscribe(async (event: any) => {
console.log('Change: ', event)
this.canGoBack = await this.newsNav.canGoBack();
});
}
```

## :cool: Features

* Home page has super-tabs navigation - app-routing module just navigates to home page. Individual page routing modules removed.

## :clipboard: Status & To-do list

* Status: Working.
* To-do: Nothing. Could use this swipeable menu in other Ionic apps.

## :clap: Inspiration

* [Simon Grimm, Ionic Academy Tutorial: Building a Swipeable Tabs Navigation with Ionic 4+](https://www.youtube.com/watch?v=8qUywCzR-vo&t=1s)
* [Ionic forum: Ionic Swipeable Tabs are now here!](https://forum.ionicframework.com/t/ionic-swipeable-tabs-are-now-here/84266)

## :file_folder: License

* This project is licensed under the terms of the MIT license.

## :envelope: Contact

* Repo created by [ABateman](https://github.com/AndrewJBateman), email: [email protected]