Deliver Audacious Web Apps with Ember 2

Book Description

It's time for web development to be fun again, time to write engaging and attractive apps--fast--in this brisk tutorial. Build a complete user interface in a few lines of code, create reusable web components, access RESTful services and cache the results for performance, and use JavaScript modules to bring abstraction to your code. Find out how you can get your crucial app infrastructure up and running quickly, so you can spend your time on the stuff great apps are made of: features.

With its 2.0 release, the Ember JavaScript framework has taken a major step forward. In this book, you'll learn these new features: how to use module-driven development with Ember CLI, take advantage of the new DOM-based rendering engine, and use a service-based architecture to make your apps flexible, not brittle.

Use the Ember CLI to build your app using module-focused JavaScript classes with a clear project structure. Learn how to use Ember's routing classes to organize your app, write web components that marry your user interface and logic without leaky access to state, and read and write data from RESTful services with almost no code. Make use of services to encapsulate logic and inject it throughout your app, and use Ember CLI to rapidly iterate changes, deploy locally, test your code, and build for production. You'll learn all the essentials of working with Ember.

If you're tired of feeling limited by your web development tools, unleash your ambition and start creating ambitious web applications with Ember.

What You Need:You need Ember, Ember CLI, Google Chrome or Mozilla Firefox, and a text editor.

Publisher Resources

View/Submit Errata

Table of Contents

  1.  Acknowledgments
  2.  Introduction: Why Ember?
    1. What This Book Is, and Isn’t
    2. Who Should Read This Book?
    3. How This Book Is Organized
    4. Where to Go for Help
  3. 1. Starting Your App with Ember
    1. Install Ember and Ember CLI
    2. Start Your App
    3. Next Steps
  4. 2. Directing Traffic with Routes
    1. Use the Router Class to Organize Your App
    2. Define Your Routes
    3. Set Your Model
    4. Nest Routes
    5. Transition Between Routes
    6. Render Templates into Named Outlets
    7. Next Steps
  5. 3. Laying Out a User Interface
    1. Make Your App with a Single Page
    2. Segment Your UI into Templates
    3. Render HTML Controls with Expressions
    4. Compile Templates
    5. Next Steps
  6. 4. Building In Reuse with Components
    1. Create Components
    2. Get Data from Containing Templates
    3. Define a Component User Interface
    4. Handle Actions
    5. Next Steps
  7. 5. Modeling Your Data
    1. Define Your Models
    2. Load Data from RESTful Services
    3. Work with Records
    4. Next Steps
  8. 6. Reading Nonstandard APIs
    1. Adapt to a Nonconventional API
    2. Use Serializers to Access Legacy APIs
    3. Allow the Adapter to Query a Nonconventional API
    4. Adapt to Path Name Variations
    5. Change the Payload Root
    6. Tie Adapters and Serializers to Your Model Class
    7. Next Steps
  9. 7. Reusing Code in Ember
    1. Abstract Common Functions with Utilities
    2. Share Code with Mixins
    3. Share Services with Dependency Injection
    4. Use Transforms to Tweak Data
    5. Next Steps
  10. 8. Building, Testing, and Deploying Your Ember Apps
    1. Build Your App
    2. Test and Debug Your App
    3. Deploy Your App
    4. Next Steps
  11. 9. Building and Using Ember Addons
    1. Install an Ember Addon
    2. Develop Your Own Addon
    3. Next Steps

Product Information

  • Title: Deliver Audacious Web Apps with Ember 2
  • Author(s): Matthew White
  • Release date: October 2015
  • Publisher(s): Pragmatic Bookshelf
  • ISBN: 9781680500783