万本电子书0元读

万本电子书0元读

顶部广告

Ember.js Cookbook电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Erik Hanchett

出  版  社:Packt Publishing

出版时间:2016-02-29

字       数:137.1万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Arm yourself with over 65 hands-on recipes to master the skills of building scalable web applications with Ember.jsAbout This BookThis 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 LearnSkip the boilerplate code with Ember CLI generatorsCreate a component with actions and eventsSet up a model with Ember Data using fixture dataCreate several different types of test cases and run themManage and set up user authentication using Ember Simple AuthAdd animated transitions to your app with Liquid FireSet up a service and initializer with dependency injectionCreate a working chat applicationSet up an Ember Service and initializer with dependency injectionCreate 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
目录展开

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 records with Ember Data

Getting ready

How to do it...

How it works...

Using fixtures

Getting ready

How to do it...

How it works...

Customizing the adapter and serializer

Getting ready

How to do it...

Optional customizations in Ember Data

Host customization

Headers customization

Working with serializers

Updating IDs

KeyForAttribute when working a JSON payload

How it works...

Working with relationships

Getting ready

How to do it...

How it works...

8. Logging, Debugging, and Testing

Introduction

Using Ember.Logger

How to do it...

How it works...

Using Ember Inspector

Getting ready

How to do it...

Verifying deprecations and using advanced features of Ember Inspector

How to do it...

How it works...

Using acceptance testing

How to do it...

How it works...

Using unit tests

How to do it...

How it works...

Testing components

How to do it...

Testing actions in the font-sizer component

How it works...

Testing routes

How to do it...

How it works...

Testing models

How to do it...

How it works...

Testing controllers

How to do it...

How it works...

9. Real-Life Tasks with Ember.js

Introduction

Using services with a component

How to do it...

How it works...

Managing basic authentication

How to do it...

How it works...

Using OAuth2 with Ember Simple Auth

Getting ready

How to do it...

How it works...

Using Liquid Fire to create transitions

How to do it...

How it works...

Working with HTML5 drag and drop

How to do it...

How it works...

Learning Bootstrap with Ember.js

How to do it...

How it works...

10. Awesome Tasks with Ember

Introduction

Using Ember validations

How to do it...

How it works...

Using D3.js with Ember.js

How to do it...

How it works...

Using Ember with Sockets

How to do it...

How it works...

There's more...

Using Ember with Firebase

Getting ready

How to do it...

How it works...

Using server side rendering

How to do it...

How it works...

11. Real-Time Web Applications

Introduction

Using dependency injection

How to do it...

How it works...

Working with application initializers

How to do it...

How it works...

Building a chat application

How to do it...

How it works...

There's more...

Creating and working with add-ons

How to do it...

Testing the sockjs-chat add-on

Publishing the sockjs-chat add-on

How it works...

See also

Learning the Ember run loop

Getting ready

Understanding Ember run queues

When should you change the Ember run loop?

Working with the Ember.run namespace

How to do it...

How it works...

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部