Ionic default Tabs template use instance, ionictabs template instance

Source: Internet
Author: User

Ionic default Tabs template use instance, ionictabs template instance

Ionic default Tabs template. Android is at the top and IOS is at the bottom. Modify the configuration in www/js/app. js, add a variable, and then modify the corresponding attributes:

.config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider) {$ionicConfigProvider.platform.ios.tabs.style('standard');  $ionicConfigProvider.platform.ios.tabs.position('bottom'); $ionicConfigProvider.platform.android.tabs.style('standard'); $ionicConfigProvider.platform.android.tabs.position('bottom'); $ionicConfigProvider.platform.ios.navBar.alignTitle('center');  $ionicConfigProvider.platform.android.navBar.alignTitle('left'); $ionicConfigProvider.platform.ios.backButton.previousTitleText('').icon('ion-ios-arrow-thin-left'); $ionicConfigProvider.platform.android.backButton.previousTitleText('').icon('ion-android-arrow-back');  $ionicConfigProvider.platform.ios.views.transition('ios');  $ionicConfigProvider.platform.android.views.transition('android');

Then debug Tabs on the Android platform, and other components work normally.

 

 

Special note
Cordova must be correctly configured, especially Android ADT.
Visual Studio is not configured by default.
For details, refer to this article.
 Copy codeThe Code is as follows :'). addClass ('pre-numbering '). hide (); \ (this ). addClass ('has-numbering '). parent (). append (\) numbering); for (I = 1; I <= lines; I ++) {\ (numbering. append (\)('
'). Text (I) ;}; $ numbering. fadeIn (1700 );});});
The above introduces Ionic Tabs, including ionic and tabs, and hopes to help those who are interested in IOS development.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.