Skip to content

Instantly share code, notes, and snippets.

prantikv / tabs.service.ts
Created January 24, 2018 05:15 — forked from adamkearsley/tabs.service.ts
A service to hide and show tabs in Ionic 2
View tabs.service.ts
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 methods wherever you want
export class TabsService {
constructor() {}
public hide() {
View index.html
<!DOCTYPE html>
<script src="cordova.js"></script>
<style type="text/css">
<body onload="domLoaded()">