Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Data Oriented Development with Angularjs

You're reading from   Data Oriented Development with Angularjs

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher
ISBN-13 9781784398057
Length 156 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Manoj Waikar Manoj Waikar
Author Profile Icon Manoj Waikar
Manoj Waikar
Arrow right icon
View More author details
Toc

Chapter 2. Working with Data

Now that we've already covered the basics of AngularJS and data binding, let's take a deep dive into Angular and see what dependency injection is, why it is needed, and how to do dependency injection in Angular. We'll also see the role of filters and how to write custom filters. Then, we'll see how to call remote APIs using the $http service and the $resource service. Finally, we'll study how the $resource service is an abstraction on top of the $http service and how it makes communication with RESTful APIs easier. So, let's get started.

In this chapter, we will cover the following topics:

  • Dependency injection and why it is needed
  • How dependency injection is achieved in Angular
  • The role of filters and how to implement them
  • What are promises?
  • How to communicate with backend APIs using the $http service
  • How the $resource service makes communication with RESTful services easier
lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Data Oriented Development with Angularjs
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon