Directive page in Developer Guide is not updated
The code shown at the beginning of the paragraph called "Writing directives (long version)" is not synchronized with the description contained inside the sub-paragraph called "Directive Definition Object".
In the list of attributes explained in the "Directive Definition Object" sub-paragraph there are some attributes (such as terminal, controller, require, etc.) that don't appear in the "full skeleton of the directive" at the beginning of the "Writing directives (long version)" paragraph.
It also uses $defer instead of $timeout. There's also a reference to $observe which I think should be $watch but I'm not sure.
it works if you just change the defer to timeout in the dependency injection and the usage below.
defer was already changed to $timeout. Also docs now explicitly say that the "long version" is just a longer version and not the full directive skeleton:
An example skeleton of the directive is shown here, for the complete list see below.
Closing.