Ember.js Cookbook
eBook - ePub

Ember.js Cookbook

Erik Hanchett

Share book
  1. 308 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Ember.js Cookbook

Erik Hanchett

Book details
Book preview
Table of contents
Citations

About This Book

Arm yourself with over 65 hands-on recipes to master the skills of building scalable web applications with Ember.jsAbout This Book• This book is your one-stop solution to the key features of Ember.js. Become skilled in the art of building web-apps in a fraction of the code you'd write in other frameworks.• Build JavaScript apps that don't break the web! Our 100 recipes will make this a cakewalk for you!• This books makes learning Ember.js easy by breaking down each topic into simple-to-understand recipesWho This Book Is ForAnyone who wants to explore Ember.js and wishes to get hands on making sophisticated web apps with less coding will find this book handy. Prior experience in Coding and familiarity with JavaScript is recommended. If you've heard of Ember.js or are just curious on how a single-page application framework works, then this book is for you.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 applicationIn DetailEmber.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.Style and approachEach recipe in this book will make it that much easier to understand Ember.js. Recipe after recipe, you will learn the concepts of Ember.js by following the simple step-by-step processes

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Ember.js Cookbook an online PDF/ePUB?
Yes, you can access Ember.js Cookbook by Erik Hanchett in PDF and/or ePUB format, as well as other popular books in Informatik & Webservices & APIs. We have over one million books available in our catalogue for you to explore.

Information

Year
2016
ISBN
9781783982219
Edition
1

Ember.js Cookbook


Table of Contents

Ember.js Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Ember CLI Basics
Introduction
Installing Ember CLI
Getting ready
A one-click installer for Windows or Mac
Homebrew or MacPorts for Mac
A TAR file
The Linux package manager
Test installation
How to do it...
How it works...
There's more...
Commands
Aliases
Creating your first project
How to do it...
How it works...
There's more...
Exploring pods and the folder layout
Getting ready
Pods
How to do it...
How it works...
Asset compilation
How to do it...
CSS and assets
Minifying
Fingerprinting
How it works...
Dependency management
How to do it...
The app.import code
How it works...
Upgrading your project
How to do it...
Updating an existing project
How it works...
Deployment
How to do it...
Deploying to Firebase
How it works...
2. The Ember.Object Model
Introduction
Working with classes and instances
How to do it...
Accessing properties within the bulb instance
Initializing the Ember object
Reopening classes
How it works...
There's more...
Working with computed properties
How to do it...
Chaining the Light object
Alias
How it works...
Working with Ember observers in Ember.js
How to do it...
Synchronous issues with the Light object and observers
How it works...
Working with bindings
How to do it...
One-way binding
How it works...
Using mixins
How to do it...
Mixins with the Ember CLI
How it works...
Using enumerables with arrays
Getting ready
How to do it...
Using forEach with an array
Using map with an array
Using mapBy with an array
Finding the first and last objects in an array
Fun with filters
Using filterBy with a collection of objects
Using find to get the first match
Using findBy with collections
Learning with the every enumerable
Using any to find at least one match
How it works...
3. Ember Templates
Introduction
Defining an application template
Getting ready
How to do it...
Using templates with components
How it works...
Working with conditionals in templates
How to do it...
Using inline invocation with templates
Working on nested invocation with templates
The opposite of if is unless
How it works...
Displaying a list of items
How to do it...
Finding the index of the array
How it works...
Binding with element attributes and classes
How to do it...
How it works...
Working with HTML links inside templates
How to do it...
Using link-to helpers with dynamic segments
How it works...
Handling HTML actions
How to do it...
Adding a parameter to an action event
How it works...
Using template input helpers
How to do it...
How to use checkbox helpers
How to use text areas
How it works...
Using development helpers
How to do it...
How it works...
4. Ember Router
Introduction
Defining an application route
How to do it...
Working with nested routes in your application
Adding a wildcard
Adding dynamic segments to our about application
How it works...
Setting up a route model
How to do it...
How it works...
Handling dynamic segments inside routes
Getting ready
How to do it...
How it works...
Defining routes with templates
How to do it...
How it works...
Using redirection with routes
How to do it...
How it works...
Working with asynchronous routing
How to do it...
How it works...
Loading and error handling
How to do it...
Creating an error substate
How it works...
Using query parameters
How to do it...
Adding a link-to helper with a query parameter
Resetting a controller's query parameters
How it works...
5. Ember Controllers
Introduction
Storing application properties
How to do it...
How it works...
Handling actions in controllers
How to do it...
How it works...
Working with transitions
How to do it...
How it works...
Managing dependencies between controllers
How to do it...
How it works...
6. Ember Components
Introduction
Using components in an application
How to do it...
Creating a student component dynamically
How it works...
Using events in components
How to do it...
How it works...
Implementing actions in components
How to do it...
Closure actions with our student component
How it works...
Passing properties to a component
How to do it...
How it works...
Using yield with components
How to do it...
How it works...
7. Ember Models and Ember Data
Introduction
Understanding the functionalities of Ember Data
Getting ready
How to do it...
How it works...
Creating, reading, updating, and deleting r...

Table of contents