Регистрация ·  Логин: Пароль: Запомнить   · Забыли пароль?




Ответить на тему
Автор Сообщение

Модератор
Аватара пользователя

С нами: 11 лет
Сообщения: 7870
Молдова

Сообщение 11 янв 2016, 21:25 

[Цитировать]

AngularJS Services


Год: 2014
Автор: Jim Lavin
Издательство: Packt Publishing
ISBN: 978-1-78398-357-5
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Количество страниц: 152
Описание:

This book provides you with the skills and best practices needed to create AngularJS services. It starts with the fundamentals of what services are and their role in a typical AngularJS application. You will walk through the development of a real-world application using services across the various application layers and then move on to create services that provide cross-cutting concerns such as messaging, logging, and authentication.

Next, the book covers services that provide data access showing you how to interact with external cloud-based data services and how to cache data on the client to reduce network latency. The book then shows you how to write services that leverage other cloud-based services to create mashups and include functionality in your application without writing a lot of code.

You will also learn how to create business logic objects, rules engines, and finite state machines, which can be used to provide business logic for your application.
Preface
Chapter 1: The Need for Services

AngularJS best practices
Responsibilities of controllers
Responsibilities of directives
Responsibilities of services
Chapter 2: Designing Services
Measure twice, and cut once
Defining your service's interface
Designing for testability
Services, factories, and providers
Structuring your service in code
Configuring your service
Chapter 3: Testing Services
The basics of a test scenario
Loading your modules in a scenario
Mocking data
Mocking services
Mocking services with Jasmine spies
Handling dependencies that return promises
Mocking backend communications
Mocking timers
Chapter 4: Handling Cross-cutting Concerns
Communicating with your service's consumers using patterns
Managing user notifications
Logging application analytics and errors
Authentication using OAuth 2.0
Chapter 5: Data Management
Models provide the state and business logic
Implementing a CRUD data service
Caching data to reduce network traffic
Transforming data in the service
Chapter 6: Mashing in External Services
Storing events with Google Calendar
Using Google Tasks to build a brewing task list
Tying the Google Calendar and task list together
Chapter 7: Implementing the Business Logic
Encapsulating business logic in models
Encapsulating business logic in services
Models or services, which one to use?
Controlling a view flow with a state machine
Validating complex data with a rules engine
Chapter 8: Putting It All Together
Wiring in authentication
Displaying notifications and errors
Controlling the application flow
Displaying data from external services
Building and calculating the recipe
Messaging is the heart of the application
Index
Download
Для скачивания .torrent файлов необходима регистрация
Сайт не распространяет и не хранит электронные версии произведений, а лишь предоставляет доступ к создаваемому пользователями каталогу ссылок на торрент-файлы, которые содержат только списки хеш-сумм

Страница 1 из 1

Ответить на тему

   Похожие торренты   Торрент