LoginSignup
2
1

More than 5 years have passed since last update.

ionic3での小技集(随時追加)

Last updated at Posted at 2018-06-04

ionic3での小技集

メモがてらに書きます。

小技1 : Mainページ以外でTabbarを消す方法

アプリ上でタブはほぼ必須だと思いますが、設定や編集ページにおいてタブは必要ありません。そんなとき1行追加するだけで、タブを非表示にできる方法があります。

app.module.ts
@NgModule({
  declarations: [ MyApp ],
  imports: [
    IonicModule.forRoot(MyApp, {
      tabsHideOnSubPages: true,
    })
],
  bootstrap: [IonicApp],
  entryComponents: [ MyApp ],
  providers: []
})

tabsHideOnSubPages: true を追加することで、サブページにおけるタブが非表示になります。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1