Ionic 2 installs one component in md

Is it possible to install one component per page on a specific platform.

For example, I have an iOS screen, and I want the bottom toolbar for this page only to use the Android style (material design).

+5
source share
1 answer

Yes, it is possible, each Ionic component can be configured at 3 levels of the Global, Platform and Component levels. In order for this toolbar component to use the material design style for Android regardless of its platform, you can use the "mode" attribute and set it to md .

<ion-toolbar mode="md"> <ion-title>Scrolls with the content</ion-title> </ion-toolbar> 

You can also configure for Windows with wp and IOS with ios values โ€‹โ€‹for the mode attribute. See http://ionicframework.com/docs/v2/api/components/toolbar/Toolbar/ for details.

+2
source

All Articles