What is the best way to hide tabs on certain pages?


#1

I would like to be able to hide my primary navigation on certain pages – I think a custom decorator would be the most intuitive and concise:

import { Page } from 'ionic-angular';
import { hideTabs } from './tabs';

@hideTabs()
@Page({
  ...
})
export class BuyPage {
}`

I posted my thought process and current progress to StackOverflow:

Does anyone know how to complete this @hideTabs() decorator? Alternatively, is there a simpler/better way to hide tabs on certain pages that I’m overlooking?

Thanks!


Hide tabs on specific page with Typescript