Skip to content

AndrewJBateman/ionic-angular-swipeTabs

Repository files navigation

⚡ 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 GitHub pull requests GitHub Repo stars GitHub last commit

📚 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.

📷 Screenshots

Ionic page

📶 Technologies

💾 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

💻 Code Examples

  • sets canGoBack boolean variable to true when there is an Ionic navigation event.
  ngAfterViewInit() {
    this.newsNav.ionNavDidChange.subscribe(async (event: any) => {
      console.log('Change: ', event)
      this.canGoBack = await this.newsNav.canGoBack();
    });
  }

🆒 Features

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

📋 Status & To-do list

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

👏 Inspiration

📁 License

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

✉️ Contact