Reputation: 2216
Are there any ad hoc standards or tools for documenting AngularJS directives? We're explicitly building pieces of reusable functionality, so we should be able to get their interfaces across to developers. I've seen a couple of things:
Is there some better method people have found?
Upvotes: 12
Views: 2120
Reputation: 1575
Have a look at angular's source, the comments there are what is used to generate the documentation on angular site
a similar approach is used in this grunt plugin: https://github.com/Vertafore/grunt-docular
which is what we use where I work
Upvotes: 3