Ionic Tabs
Ionic Tabs is a collection of important directives for creating a tab-based layout for a section of your mobile app. We have already seen how the tabs directive is used in the tabs
starter template.
Ionic Tabs is a collection of two directives and one service. The directives are <ion-tabs>
used to define the collection or group of tabs, and the <ion-tab>
, directive, which is used to define a specific tab. The service $ionicTabsDelegate
is used to control the tabs from JavaScript in order to select a specific tab.
The <ion-tabs> directive
It provides a multi-tabbed interface with a set of tabs and multiple views that can be switched. The tabs CSS classes are used to set the styling of the tabs group. The class name tabs
should be used along with the following classes for specific styles:
CSS class |
Description |
---|---|
|
Defines the color of the tabs, for example, |
|
It will show tabs with icons... |