angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

Directive page in Developer Guide is not updated

Open redaemn opened this issue 14 years ago • 3 comments

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.

redaemn avatar May 28 '12 10:05 redaemn

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.

ghost avatar Jun 01 '12 19:06 ghost

it works if you just change the defer to timeout in the dependency injection and the usage below.

polidore avatar Jun 25 '12 22:06 polidore

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.

pkozlowski-opensource avatar Dec 02 '12 10:12 pkozlowski-opensource