ionic v1 mode ios code example

Example 1: ionic set mode ios to whle app

import { IonicModule } from '@ionic/angular';

@NgModule({
  ...
  imports: [
    BrowserModule,
    IonicModule.forRoot({
      rippleEffect: false,
      mode: 'ios'
    }),
    AppRoutingModule
  ],
  ...
})

Example 2: ionic ios only css

.ios{
	ion-badge {
  		text-transform: uppercase;
	}
}

Example 3: ionic 5 make app portrait only

If you want to restrict to portrait mode only on all devices 
you should add this line to the config.xml in your projects root folder.



After that, please rebuild the platform by typing below text in command line:

ionic build

Tags:

Misc Example