Ember.js Cookbook

Arm yourself with over 65 hands-on recipes to master the skills of building scalable web applications with Ember.js

Ember.js Cookbook

This ebook is included in a Mapt subscription
Erik Hanchett

1 customer reviews
Arm yourself with over 65 hands-on recipes to master the skills of building scalable web applications with Ember.js
$10.00
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook
Access every Packt eBook & Video for just $100
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find Out More
 
Preview in Mapt

Book Details

ISBN 139781783982202
Paperback308 pages

Book Description

Ember.js is an open source JavaScript framework that will make you more productive. It uses common idioms and practices, making it simple to create amazing single-page applications. It also lets you create code in a modular way using the latest JavaScript features. Not only that, it has a great set of APIs to get any task done. The Ember.js community is welcoming newcomers and is ready to help you when needed.

This book provides in-depth explanations on how to use the Ember.js framework to take you from beginner to expert. You’ll start with some basic topics and by the end of the book, you’ll know everything you need to know to build a fully operational Ember application.

We’ll begin by explaining key points on how to use the Ember.js framework and the associated tools. You’ll learn how to effectively use Ember CLI and how to create and deploy your application. We’ll take a close look at the Ember object model and templates by examining bindings and observers. We’ll then move onto Ember components, models, and Ember Data. We’ll show you examples on how to connect to RESTful databases. Next we’ll get to grips with testing with integration and acceptance tests using QUnit. We will conclude by covering authentication, services, and Ember add-ons. We’ll explore advanced topics such as services and initializers, and how to use them together to build real-time applications.

Table of Contents

Chapter 1: Ember CLI Basics
Introduction
Installing Ember CLI
Creating your first project
Exploring pods and the folder layout
Asset compilation
Dependency management
Upgrading your project
Deployment
Chapter 2: The Ember.Object Model
Introduction
Working with classes and instances
Working with computed properties
Working with Ember observers in Ember.js
Working with bindings
Using mixins
Using enumerables with arrays
Chapter 3: Ember Templates
Introduction
Defining an application template
Working with conditionals in templates
Displaying a list of items
Binding with element attributes and classes
Working with HTML links inside templates
Handling HTML actions
Using template input helpers
Using development helpers
Chapter 4: Ember Router
Introduction
Defining an application route
Setting up a route model
Handling dynamic segments inside routes
Defining routes with templates
Using redirection with routes
Working with asynchronous routing
Loading and error handling
Using query parameters
Chapter 5: Ember Controllers
Introduction
Storing application properties
Handling actions in controllers
Working with transitions
Managing dependencies between controllers
Chapter 6: Ember Components
Introduction
Using components in an application
Using events in components
Implementing actions in components
Passing properties to a component
Using yield with components
Chapter 7: Ember Models and Ember Data
Introduction
Understanding the functionalities of Ember Data
Creating, reading, updating, and deleting records with Ember Data
Using fixtures
Customizing the adapter and serializer
Working with relationships
Chapter 8: Logging, Debugging, and Testing
Introduction
Using Ember.Logger
Using Ember Inspector
Verifying deprecations and using advanced features of Ember Inspector
Using acceptance testing
Using unit tests
Testing components
Testing routes
Testing models
Testing controllers
Chapter 9: Real-Life Tasks with Ember.js
Introduction
Using services with a component
Managing basic authentication
Using OAuth2 with Ember Simple Auth
Using Liquid Fire to create transitions
Working with HTML5 drag and drop
Learning Bootstrap with Ember.js
Chapter 10: Awesome Tasks with Ember
Introduction
Using Ember validations
Using D3.js with Ember.js
Using Ember with Sockets
Using Ember with Firebase
Using server side rendering
Chapter 11: Real-Time Web Applications
Introduction
Using dependency injection
Working with application initializers
Building a chat application
Creating and working with add-ons
Learning the Ember run loop

What You Will Learn

  • Skip the boilerplate code with Ember CLI generators
  • Create a component with actions and events
  • Set up a model with Ember Data using fixture data
  • Create several different types of test cases and run them
  • Manage and set up user authentication using Ember Simple Auth
  • Add animated transitions to your app with Liquid Fire
  • Set up a service and initializer with dependency injection
  • Create a working chat application
  • Set up an Ember Service and initializer with dependency injection
  • Create a working chat application

Authors

Table of Contents

Chapter 1: Ember CLI Basics
Introduction
Installing Ember CLI
Creating your first project
Exploring pods and the folder layout
Asset compilation
Dependency management
Upgrading your project
Deployment
Chapter 2: The Ember.Object Model
Introduction
Working with classes and instances
Working with computed properties
Working with Ember observers in Ember.js
Working with bindings
Using mixins
Using enumerables with arrays
Chapter 3: Ember Templates
Introduction
Defining an application template
Working with conditionals in templates
Displaying a list of items
Binding with element attributes and classes
Working with HTML links inside templates
Handling HTML actions
Using template input helpers
Using development helpers
Chapter 4: Ember Router
Introduction
Defining an application route
Setting up a route model
Handling dynamic segments inside routes
Defining routes with templates
Using redirection with routes
Working with asynchronous routing
Loading and error handling
Using query parameters
Chapter 5: Ember Controllers
Introduction
Storing application properties
Handling actions in controllers
Working with transitions
Managing dependencies between controllers
Chapter 6: Ember Components
Introduction
Using components in an application
Using events in components
Implementing actions in components
Passing properties to a component
Using yield with components
Chapter 7: Ember Models and Ember Data
Introduction
Understanding the functionalities of Ember Data
Creating, reading, updating, and deleting records with Ember Data
Using fixtures
Customizing the adapter and serializer
Working with relationships
Chapter 8: Logging, Debugging, and Testing
Introduction
Using Ember.Logger
Using Ember Inspector
Verifying deprecations and using advanced features of Ember Inspector
Using acceptance testing
Using unit tests
Testing components
Testing routes
Testing models
Testing controllers
Chapter 9: Real-Life Tasks with Ember.js
Introduction
Using services with a component
Managing basic authentication
Using OAuth2 with Ember Simple Auth
Using Liquid Fire to create transitions
Working with HTML5 drag and drop
Learning Bootstrap with Ember.js
Chapter 10: Awesome Tasks with Ember
Introduction
Using Ember validations
Using D3.js with Ember.js
Using Ember with Sockets
Using Ember with Firebase
Using server side rendering
Chapter 11: Real-Time Web Applications
Introduction
Using dependency injection
Working with application initializers
Building a chat application
Creating and working with add-ons
Learning the Ember run loop

Book Details

ISBN 139781783982202
Paperback308 pages
Read More
From 1 reviews

Read More Reviews