How to set theme globally?


#1

How to set theme globally like
IonicModule.forRoot( {mode: 'ios'} )


#2

Hi Chen,

You can use this in your module file:

import { MbscModule, mobiscroll } from '@mobiscroll/angular';
// ...

mobiscroll.settings = {
  theme: 'ios'
};

@NgModule({
  // ...
})
export class MyModule {}

Let me know if it works for you!


#3

work like a charm. thanks.