Free Sample
+ Collection

Mastering Ember.js

Mitchel Kelonye

Build fast, scalable, dynamic, and ambitious single-page web applications by mastering Ember.js
RRP $26.99
RRP $44.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783981984
Paperback218 pages

About This Book

  • Create, test, and deploy powerful and professional web applications
  • Debug and modularize your project effectively
  • Easily architect solutions to any single page web application needs

Who This Book Is For

If you are a web developer with basic knowledge of Ember.js, this is the book for you. Working knowledge of HTML, CSS, and JavaScript is assumed.

Table of Contents

Chapter 1: Introduction to Ember.js
The origin of Ember.js
Downloading Ember.js
Creating your first application
Initializing the application
Chapter 2: Understanding Ember.js Objects and Mixins
Creating objects in Ember.js
Accessing object properties
Defining class instance methods
Defining computed properties
Defining property observers
Creating property bindings
Using mixins
Reopening classes and instances
Event subscription
Chapter 3: Routing and State Management
Creating the application's router
Mapping URLs to routes
Nesting resources
Understanding the state transition cycle
Configuring the router
Specifying a route's path
Defining route and resource handlers
Specifying a route's model
Serializing resources
Asynchronous routing
Configuring a route's controller
Rendering the route's template
Redirecting state
Catching routing errors
Chapter 4: Writing Application Templates
Registering templates
Inserting templates
Writing out templates
Expressing variables
Writing bound and unbound expressions
Adding comments in templates
Writing conditionals
Switching contexts
Rendering enumerable data
Writing template bindings
Defining route links
Registering DOM element event listeners
Writing form inputs
Extending templates
Defining custom helpers
Creating subexpressions
Chapter 5: Controllers
Defining controllers
Providing controllers with models
Rendering dynamic data from controllers
Object and array controllers
Handling event actions
Specifying controller dependencies
State transitions in controllers
Chapter 6: Views and Event Management
Defining views
Accessing a view's controller
Specifying a view's template
Specifying a view's element tag
Updating a view's element class attribute
Updating other views' element attributes
Inserting views into DOM
Inserting views into templates
Specifying view layouts
Registering event handlers in views
Emitting actions from views
Using built-in views (components)
Chapter 7: Components
Understanding components
Defining a component
Differentiating components from views
Passing properties to components
Customizing a component's element tag
Customizing a component's element class
Customizing a component's element attributes
Managing events in components
Defining component actions
Interfacing a component with the rest of the application
Components as layouts
Chapter 8: Data Persistence through REST
Making Ajax requests
Understanding Ember-data
Ember-data namespace
Creating a data store
Defining models
Declaring relations
Finding records
Defining a store's adapter
Creating REST APIs
Customizing a store's serializer
Creating custom transformations
Chapter 9: Logging, Debugging, and Error Management
Logging and debugging
Using the Ember.js inspector
Client-side tracing
Error management
Chapter 10: Testing Your Application
Writing tests
Writing unit tests
Writing integration tests
Chapter 11: Building Real-time Applications
Setting up
Connecting the user
Chapter 12: Modularizing Your Project
Installing the Component build tool
Code organization
Installing components
Building components
Loading the built files
Game logic
Serving images and fonts

What You Will Learn

  • Install Ember.js and create a basic application
  • Separate concerns in web applications through the use of states
  • Create dynamic web applications
  • Easily make interactive web applications
  • Connect web applications to remote data stores
  • Make real-time web applications
  • Use REST in order to persist data
  • Discover how Ember.js logs errors and how to troubleshoot when needed
  • Package reusable web components

In Detail

As businesses shift towards web-based solutions, there's been an increasing amount of customer needs that can only be met by sophisticated web applications. Building these applications is not easy and huge efforts have been invested in order to realize faster delivery of such applications. Ember.js is one of these efforts and acquiring expert knowledge of its key concepts will enable the realization of shorter and profitable web application development cycles.

Developing single-page web applications is about to get easier! This book introduces you to web application development using the Ember.js web framework. Mastering Ember.js will help you to utilize its full potential and will show you how to create web applications. You will learn about views, event management, logging, debugging, and error management, always focusing on best practices. Finally, you will test your application and learn how to use WebSockets with Ember.js and end the book by modularizing your project.


Read More