AngularJS Services

Jim Lavin

  • 出版商: Packt Publishing
  • 出版日期: 2014-08-22
  • 售價: $1,080
  • 貴賓價: 9.5$1,026
  • 語言: 英文
  • 頁數: 184
  • 裝訂: Paperback
  • ISBN: 1783983566
  • ISBN-13: 9781783983568
  • 相關分類: Angular
  • 下單後立即進貨 (約3~4週)


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.

What You Will Learn

  • Write Jasmine scenarios to test your AngularJS services
  • Implement common functionality that can be leveraged by the controllers, directives, and other services in your application
  • Build services that create, retrieve, update, and delete your application's data on external servers
  • Incorporate third-party JavaScript libraries into your AngularJS application
  • Move business logic to the client side to build a new class of serverless applications
  • Optimize your AngularJS application for maximum performance

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.