Skip to content

Instantly share code, notes, and snippets.

@adamkearsley
adamkearsley / tabs.service.ts
Created February 9, 2017 13:09 — forked from 0x1ad2/tabs.service.ts
A service to hide and show tabs in Ionic 2
import {Injectable} from '@angular/core';
// Declare TabsService as a provider in app.module.ts
// Inject TabsService in your class: constructor(public tabs: TabsService){}
// Use the this.tabs.hide() or this.tabs.show() methods wherever you want
@Injectable()
export class TabsService {
constructor() {}
public hide() {