Ember.js Cookbook
eBook - ePub

Ember.js Cookbook

Erik Hanchett

Condividi libro
  1. 308 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Ember.js Cookbook

Erik Hanchett

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

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

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Ember.js Cookbook è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Ember.js Cookbook di Erik Hanchett in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatik e Webservices & APIs. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2016
ISBN
9781783982219
Edizione
1
Argomento
Informatik

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

Indice dei contenuti