Ember.js Cookbook
eBook - ePub

Ember.js Cookbook

Erik Hanchett

Buch teilen
  1. 308 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Ember.js Cookbook

Erik Hanchett

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

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

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Ember.js Cookbook als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Ember.js Cookbook von Erik Hanchett im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatik & Webservices & APIs. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2016
ISBN
9781783982219

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...

Inhaltsverzeichnis