Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Ionic, Second Edition

You're reading from   Learning Ionic, Second Edition Hybrid mobile apps with HTML5, CSS3, and Angular

Arrow left icon
Product type Paperback
Published in Apr 2017
Publisher Packt
ISBN-13 9781786466051
Length 378 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Arvind Ravulavaru Arvind Ravulavaru
Author Profile Icon Arvind Ravulavaru
Arvind Ravulavaru
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Angular - A Primer FREE CHAPTER 2. Welcome to Ionic 3. Ionic Components and Navigation 4. Ionic Decorators and Services 5. Ionic and SCSS 6. Ionic Native 7. Building the Riderr App 8. Ionic 2 Migration Guide 9. Testing an Ionic 2 App 10. Releasing the Ionic App 11. Ionic 3 Appendix

Config service

This service lets you configure and set up app-specific preferences.

To customize the look and feel of the app across platforms or within the same platform for various components, we use the config service.

To understand this service better, we will scaffold a new app and work with it. Run the following:

ionic start -a "Example 10" -i app.example.ten example10 tabs --v2

And then run ionic serve --lab.

This will run the tabs app in the lab view, where we can see the Android iOS and Windows apps side by side.

We can view the Ionic app in any of the three platform views by using the following URLs as well:
iOS: http://localhost:8100/?ionicplatform=ios
Android: http://localhost:8100/?ionicplatform=android
Windows: http://localhost:8100/?ionicplatform=windows

And we should see something like this:

Config is set up on the @NgModule. If we open example10/src/app/app.module.ts, we should find the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image