Backbone.Marionette.js: A Serious Progression
Год: 2014
Автор: David Sulc
Издательство: Leanpub
ISBN: пока не присвоен
Язык: Английский
Формат: PDF/EPUB/MOBI
Качество: Изначально компьютерное (eBook)
Количество страниц: 2014
Описание: Now that you've read the Gentle Introduction book and have a good grasp on Marionette fundamentals, take the next step in your journey: learn to develop advanced functionality with the framework!
This book takes up where the Marionette introduction book left off. It will use an actual API back-end developed for this book, that will be easily adaptable to your framework. Dowload the sample (NOT AVAILABLE YET!) to see how the ContactManager application is configured to connect to the remote API.
If you'd rather use your own API, each chatper details the relevant specifications your API must conform to.
Written in the same easy to follow style as its predecessor, you should have no trouble following along as you enhance the ContactManager application.
Продолжение серии книг David Sulc о Backbone.Marionette.
Предыдущие книги серии:
Backbone.Marionette.js: A Gentle Introduction: http://rutracker.org/forum/viewtopic.php?t=4590669Structuring Backbone Code with RequireJS and Marionette Modules: http://rutracker.org/forum/viewtopic.php?t=4648064И здорово будет, если вы поддержите этого прекрасного автора, купив хотя бы одну его книгу: <внешние ссылки запрещены>
Внимание, раздача обновлена, текущая версия книги от 18.04.2014Внимание, раздача обновлена, текущая версия книги от 11.05.2014Cover Credits
Work in Progress
Who This Book is For
Following Along with Git
Setting up
Deploying
Using the Contact Manager Application
Adapting the Application
Dealing with Legacy APIs
API Properties
Rewriting a Model’s parse Function .
Rewriting a Model’s toJSON Function
Using Non-Standard API Endpoints
Rewriting sync
At the Model Level
In the Model’s Parent Object
Exercise: Dealing with Hyphenated API Attributes
Hints
Solution
Restoring the Original API
Wrapping a Third-Party API
Using GitHub’s API
Authenticating
Working with Repositories
sync Basics
Using call on a Prototype’s Function Definition
Creating a New Repository
Fetching an Existing Repository
Deleting an Existing Repository
Editing an Existing Repository
Using the urlRoot and url Properties
Dealing with API errors
Managing Authentication
Intercepting Errors with sync
Other Authentication Possibilities
Managing Authorization on the Client Side
Handling Server-Side Responses
API Properties
Processing 404 Errors
Reacting to Server Response Codes
Adapting the Edit View
Reacting to Server-Side Validation Errors
Deferreds Versus Success/Error Callbacks
Validations: Client-Side Versus Server-Side
Fixing the Modal Edit
Fixing the “New” Action
Handling Errors on Collection Fetch
Refreshing Client-Side Data
Beware Race Conditions
Reapplying Server-Side Changes to the Client-Side Model
Checking for Server-Side Data Changes
Improving the Comparison Code
Updating Client-Side Data
Refactoring
Properly Updating Data on Modal Dialog Close
Fixing a UI Glitch
Keeping fullName Up to Date
Fixing the Modal Display
UI Challenges Aren’t so Simple
Handling Validation with a Plugin
Model-Only Validation
Defining Custom Error Messages
Form + Model Validation
Pagination
Using ClientPager
Building a Generic Paginated View
Making the Pagination Controls Functional
Filtering
Propagating Events
Keeping the URL in Sync
Loading State from the URL
Using Proper href Attributes
Using RequestPager
Memory Management
Defining Methods on Prototypes
Using listenTo Instead of on
Using Marionette Controllers
Module Start/Stop
Working with Model Relationships (In Progress)
Internationalization (In Progrees)