AndrewJBateman / ionic-angular-swipeTabs

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚑ 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

About

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

License:MIT License


Languages

Language:TypeScript 58.5%Language:SCSS 18.2%Language:HTML 14.7%Language:JavaScript 8.6%