Å·±¦ÓéÀÖ

Jump to ratings and reviews
Rate this book

Angularjs Directives

Rate this book
This book uses a practical, step-by-step approach, starting with how to build directives from the ground up before moving on to creating web applications comprised of multiple modules all working together to provide the best user experience possible.This book is intended for intermediate JavaScript developers who are looking to enhance their understanding of single-page web application development with a focus on AngularJS and the JavaScript MVC frameworks.It is expected that readers will understand basic JavaScript patterns and idioms and can recognize JSON formatted data.

110 pages, ebook

First published January 1, 2013

12 people are currently reading
71 people want to read

About the author

Alex Vanston

1Ìýbook

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
12 (19%)
4 stars
22 (36%)
3 stars
25 (40%)
2 stars
2 (3%)
1 star
0 (0%)
Displaying 1 - 7 of 7 reviews
1 review1 follower
October 14, 2013
As the title of this book suggests you will get 110 pages about AngularJS directives if you buy it. A lot of people consider writing directives one of the most complicated tasks you can have with AngularJS. It is not so wrong to say that. Directives are extremely powerful but can become tricky to write. I am not exactly new on that part of AngularJS and so I was unsure if this book what give me something in addition.

Surprisingly this book gave me a lot. It is a well written which and explains almost any aspect of directives I can imagine. If you struggle with the AngularJS docs (which is almost certainly the case) you should definitely look at the book. Alex Vanston wrote it for people who managed their first steps with AngularJS but need more. Although there is a little introduction you should be able to read JavaScript, maybe even know what jQuery is and absolutely should have made some experiments with AngularJS. It is not a book for beginners.

Vanston explains why we all need Directives and quickly moves on to answer four important questions:

- what is the difference between compile and linking phase?
- how do I work with the scope?
- how do I share my directive data with controllers?
- what the heck is transclusion?

I consider these questions the key to understand AngularJS directives and Vanston does a great job explaining them. It took me a while to understand all that from the docs and I could have saved so much time with that book.

My personal biggest win with the chapter on unit testing. I had a long time the idea that directives were so hard to test that it wouldn’t make sense. Now I look at this problem a bit different, thanks to Vanston.
I like the books writing style and enjoyed the author used real world examples (like Autocomplete or working with the jQuery Masonry plugin). Unfortunately some of the code examples became a bit unreadable. On a few places there are too much comments in the code and too much line breaks. In addition there is no “code high-lightening� and something like that. It is not exactly unreadable, but sometimes it will take its time to identify the things.

If you are an aspiring AngularJS developer you should not be troubled by some formatting and buy the book. It is focused and an easy read which will help you a lot to improve your AnguarJS skills.

.
Profile Image for Ivan Fraixedes.
22 reviews
September 21, 2013
This book is a complete guide to be a master of building AngularJS directives because it doesn't only show example of directives but it also gets you in deep into in how they work.

Starting with a brief description about the challenges to build single web page applications and how AngularJS improves cleverly their development over other frontend web frameworks and steering you with all the configurations options and their execution process until teach you about keeping them independent and maintainable and also test to guarantee as much as possible that they are quite reliable in terms of the result that they should produce.

I recommend to read this book to any person who started to use AngularJS so he knows the essentials things, but he would like to have a good understanding about the directives, one of the best features of AngularJS.

Take a look to the publisher web site to know about the content and other important stuff in
Profile Image for Blake Winton.
18 reviews3 followers
October 14, 2013
You can find a fuller review on , but suffice it to say that I would certainly recommend this book if you're using Angular JS, or even planning on using it in the not-too-distant future. It covers both the basics and the more advanced topics in a clear and concise manner.
Profile Image for Yuri.
2 reviews2 followers
October 14, 2013
Great first impression. Very interesting content.
223 reviews6 followers
November 2, 2014
AngularJS is all about directives and this book is all about directives. The book talks about all aspects of a directive and tells us how to use them. Author uses simple language and the examples used make the concepts extremely easy to understand.

Chapter 4 - Compile versus Link is the best chapter of the book and tells why AngularJS team decided to use this 'split' methodology before rendering the final contents. This chapter has a lot of information packed in just a few sentences, so take your time to read it. I myself read this chapter twice before moving on (and I'm sure to read it again soon).

Chapter 7 - Transclusion is another great take away from this book. Alex clears all the mystery around this weird word in a very simple and effective verbiage. His analogy of 'translated-inclusion' to stand for transclusion fits aptly with the example provided in the chapter.

The other chapters talk about how to use scope inside a directive, sharing directive data with controllers are quite an interesting read themselves. The chapters on writing unit and e2e tests are a win for developers as well.

Now for the minuses. The 'Who this book is for' says 'no prior MVC or Angular.JS knowledge is required' - totally not right. I have been working on AngularJS for a few months now and I had to re-read a few paragraphs to understand the concepts. No, this book is definitely not for beginners. If you want to start with AngularJS , try the Mastering Web Application Development with AngularJS book by the same publisher ([...]

In the epub version, the lack of code highlighting made it difficult to read through the lines. There are inline-comments that add to the challenge. This can also be improved.

All-in-all, this is one heck of a book
Profile Image for Francesco Pontillo.
8 reviews3 followers
June 16, 2014
"AngularJS Directives" is is THE manual for fully understanding the internal mechanism of the directive system in AngularJS, with all of its tricks and pitfalls.
The complete focus on the only directive aspect makes it a good reference manual too, given its brevity.

A must have for the AngularJS developer,
Displaying 1 - 7 of 7 reviews

Can't find what you're looking for?

Get help and learn more about the design.