Ember.js web development with Ember CLI
Subtitle: build ambitious single-page web applications using the power of Ember.js and Ember CLI
By: Suchit Puri
Series: Community experience distilled; Community experience distilled
Publisher: Packt Publishing
Published: 2015
Place of publication: Birmingham, UK
Language: eng
ISBN-13: 9781784392598; 9781784395841
Subjects: Web applications; Application software; Development; JavaScript (Computer program language); Command languages (Computer science); Applications Web; Logiciels d'application; Développement; JavaScript (Langage de programmation); Langages de commande (Informatique); COMPUTERS; General
Other titles: Ember.js web development with Ember command-line interface; Build ambitious single-page web applications using the power of Ember.js and Ember CLI
Description: If you are a JavaScript developer who is starting out to build ambitious Ember.js application, or a developer who has prior Ember.js experience and want to transition your application to the latest Ember.js version with Ember CLI, then this book is for you.
Notes: Includes index.
Table of contents: title: Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Building Ambitious Ember.js Applications with Ember CLI; The evolution of ambitious web applications; An introduction to Ember.js; The Ember.js MVC pattern; An introduction to Ember CLI; Asset pipeline; Modules; Managing the dependencies of your application; Content security add-on; Setting up your first Ember.js application using Ember CLI; Prerequisites; Creating a new application; The app folder structure.; title: Supporting files and foldersRunning your first Ember.js application; Building and deploying your Ember CLI application; Migrating existing Ember applications to Ember CLI; Code samples used in this book; Summary; Chapter 2: Understanding Ember.js Object-oriented Patterns; Ember.js object model; Reuse via mixins; Computed properties; Getter and setter methods; Observers in Ember.js; Bindings across objects; Prototype extensions; Summary; Chapter 3: Rendering Using Templates; An introduction to JavaScript templates using Handlebars.js; HTMLBars and Handlebars; Defining templates.; title: Handlebars.js expressionsHandlebars.js conditionals; If, else, and unless; Displaying a list of items using Handlebars.js; Binding HTML tag attributes; Action event bubbling; Handlebars.js input helpers; Building custom Handlebars.js helpers; Using the concise Emblem.js templating language; Installation; Using Emblem.js; Summary; Chapter 4: Managing Application State Using Ember.js Routes; Application state; Creating your first route; Resources and nested templates; Injecting the model for your template; Making routes dynamic; Route's serialize method; Setting up the controller.; title: Customizing templates to renderThe location API; Summary; Chapter 5: Handling Display Logic Using Ember.js Controllers; Introducing controllers; Object controller and array controller; Connecting controllers; Summary; Chapter 6: Communicating with the API Server Using ember-data; Introducing ember-data; Defining ember-data models; Defining relationships between your ember-data models; One-to-one; One-to-many; Many-to-many; Understanding the ember-data identity map; title: DS. Store; Working with records; Finding the records; Modifying the records; The default REST adapter and serializer.; title: Sideloaded relationshipsCustomizing the DS. RESTAdapter; Customizing the URL endpoints; Example application; Summary; Chapter 7: Building Reusable Components; Introducing Ember views and components; Custom tags with Ember.Component; Defining your own components; Passing data to your component; Providing custom HTML to your components; Extending Ember.Component; Changing your component's tag; Adding custom CSS classes to your component; Adding custom attributes to your component's DOM element; Handling actions for your component; Mapping component actions to the rest of your application.