Book: Dependency Injection with AngularJS

Posted in Articles

Tweet This Share on Facebook Bookmark on Delicious Digg this Submit to Reddit

With the title being “Dependency Injection with AngularJS“, this is not an intro book on AngularJS.  The book is technical and is geared for the intermediate web developer.

While you do need to have good understanding of HTML, CSS, Javascript, and coding experience, you do not need necessarily need to have AngularJS knowledge.

Because the first chapter will provide you with a concise overview of AngularJS by going through an example program.  You learn to add a controller, add routes, and add filters.  In addition, you learn about angular bindings, about services, and then learn to encapsulate a chart into a Angular directive.  All this in the first chapter.  The book is concise and moves fast.  Perhaps that is why the first chapter is called “Learning to Fly”.

Now that you know how to fly, the second chapter gets into development principles such as …

  • DRY (Don’t repeat yourself)
  • Dependency Inversion principle
  • Law of Demeter

You’ll learn the principle of dependency injection as well.

Wikipedia defines dependency injection as …

“Dependency injection is a software design pattern that allows the removal of hard-coded dependencies and makes it possible to change them, whether at run-time or compile-time.”

In chapter 3, the book looks at how AngularJS is bootstrapped.

In chapter 4, the book goes into testing with Jasmine and Karma.  There is also an intro to end-to-end testing with Protractor, which is an Angular-specific test framework.

The final chapter 5 discusses strategies for building and organizing large applications.

Note: This book review is opinion at the time of writing.  The eBook for this review was provided free of charge by the publisher.

Related Posts


Share This