angular-docs-cn/aio/tools/transforms/angular-api-package
Pete Bacon Darwin cf0968f98e build(docs-infra): support hiding constructors of injectable classes (#24529)
Classes that are injectable often have constructors that should not be
called by the application developer. It is the responsibility of the
injector to instantiate the class and the constructor often contains
private implementation details that may need to change.

This commit removes constructors from the docs for API items that are
both:

a) Marked with an injectable decorator (e.g. Injectable, Directive,
Component, Pipe), and
b) Have no constructor description

This second rule allows the developer to override the removal if there
is something useful to say about the constructor.

Note that "normal" classes such as `angimations/HttpHeaders` do not have
their constructor removed, despite (at this time) having no description.

PR Close #24529
2018-06-26 10:58:11 -07:00
..
content-rules build(aio): create minLength content rule (#22759) 2018-04-12 00:06:49 -07:00
mocks build(aio): refactor dgeni packages 2017-04-23 22:50:33 +01:00
processors build(docs-infra): support hiding constructors of injectable classes (#24529) 2018-06-26 10:58:11 -07:00
tag-defs build(aio): don't render `@Annotation` tags (#24000) 2018-06-13 16:47:40 -07:00
index.js build(docs-infra): support hiding constructors of injectable classes (#24529) 2018-06-26 10:58:11 -07:00