Dependency Injection with AngularJS

If you want to start using AngularJS for real, this is the book you need. Its down-to-earth practical approach will quickly teach you all you need to know about dependency injection utilizing this versatile framework.
Code Files

Dependency Injection with AngularJS

Alex Knol

1 customer reviews
If you want to start using AngularJS for real, this is the book you need. Its down-to-earth practical approach will quickly teach you all you need to know about dependency injection utilizing this versatile framework.
Mapt Subscription
FREE
$40.00/m after trial
eBook
$12.60
RRP $17.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt subscription?
  • Unlimited access to all Packt’s 6,000+ eBooks and Videos
  • 100+ new titles a month, learning paths, assessments & code files
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
$0.00
$12.60
$29.99
$29.99 p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Dependency Injection with AngularJS Book Cover
Dependency Injection with AngularJS
$ 17.99
$ 12.60
Dependency Injection in .NET Core 2.0 Book Cover
Dependency Injection in .NET Core 2.0
$ 39.99
$ 28.00
Buy 2 for $30.10
Save $27.88
Add to Cart

Book Details

ISBN 139781782166566
Paperback78 pages

Book Description

Dependency injection facilitates better testing by allowing us to mock dependencies in testing environments so that we only test one thing at a time. It also enables us to write more maintainable code by decoupling our objects from their implementations. The motivation for using it in AngularJS is to make it easier to transparently load mocked objects in tests.

This book is a practical manual to get you started on dependency injection. It will also take you along the road to creating testable and reusable code. Ensuring productivity and stability are the two most important things that you will learn.

"Dependency Injection with AngularJS" will introduce you to AngularJS using a simple sample project. By portraying different ways of developing code modules, it will show you the advantages of dependency injection. This will lead to the ability to create reusable components that can easily be tested.

The book contains a section that will show you how to make a chart component to display historical data. A short chapter will explain some of the theory and the reasons behind dependency injection. You will be introduced to Jasmine, a JavaScript behavior-driven development testing framework. You will learn how to test your code in real browsers using Karma, the lightning fast AngularJS test runner. Lastly the book will show you how to build reusable components you can stack on top of each other.

You will learn everything you need to know how to use dependency injection with AngularJS.

What You Will Learn

  • Create reusable components propelled by the independence of components from each other
  • Run tests on real browsers using the Karma test runner
  • Set up Jasmine BDD testing
  • Set up and install AngularJS
  • Change coupled code to loosely coupled injected dependencies
  • Create integration tests using Protractor
  • Organize large applications using dependency injection

Authors

Book Details

ISBN 139781782166566
Paperback78 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Dependency Injection in .NET Core 2.0 Book Cover
Dependency Injection in .NET Core 2.0
$ 39.99
$ 28.00
AngularJS Services Book Cover
AngularJS Services
$ 16.99
$ 11.90
MEAN Cookbook Book Cover
MEAN Cookbook
$ 35.99
$ 25.20
AngularJS Deployment Essentials Book Cover
AngularJS Deployment Essentials
$ 14.99
$ 10.50
.NET Design Patterns Book Cover
.NET Design Patterns
$ 31.99
$ 22.40
WebSocket Essentials - Building Apps with HTML5 WebSockets Book Cover
WebSocket Essentials - Building Apps with HTML5 WebSockets
$ 23.99
$ 16.80