NoNameProvided
NoNameProvided

Reputation: 8987

Ionic 2 - How change to specific platform style in the browser

I would like to see how my app looks in android and in uwp too. How could I change that platform style when/before ionic loads? I would prefer a javascript solution, like setting some config variable during bootstrap.

I am pretty sure there is an official solution for that, but I can't find it.

Upvotes: 1

Views: 1381

Answers (1)

Pat Murray
Pat Murray

Reputation: 4265

http://ionicframework.com/docs/v2/api/config/Config/

@App({
  template: `<ion-nav [root]="root"></ion-nav>`
  config: {
    mode: 'md'
  }
})

I just use chrome web inspector (view > developer > developer tools). you can then select OS and phone size in the top left corner (After clicking the mobile view button that is).

Upvotes: 3

Related Questions