Skip to content

Instantly share code, notes, and snippets.

@prantikv
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
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() {
atom-sync-setting
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="cordova.js"></script>
<style type="text/css">
</style>
</head>
<body onload="domLoaded()">