AngularJS Services
- Length: 184 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2014-08-26
- ISBN-10: 1783983566
- ISBN-13: 9781783983568
- Sales Rank: #4362886 (See Top 100 Books)
Design, build, and test services to create a foundation for your AngularJS applications
About This Book
- Understand how services are a vital component of the AngularJS framework and how leveraging services can benefit your application
- Design and structure your AngularJS services and learn the best practices used in designing AngularJS services
- Effectively write, test, and finally deploy your application
Who This Book Is For
If you are an intermediate JavaScript developer who is looking to enhance your understanding of single-page web application development with a focus on AngularJS services, then this book is for you.
In Detail
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.
Table of Contents
Chapter 1: The Need for Services
Chapter 2: Designing Services
Chapter 3: Testing Services
Chapter 4: Handling Cross-cutting Concerns
Chapter 5: Data Management
Chapter 6: Mashing in External Services
Chapter 7: Implementing the Business Logic
Chapter 8: Putting It All Together