Such injectables were not appearing in the providers lists of their NgModule. This commit updates the doc-gen to support associating these automatically. Further, it also allows developers to mark other injectables that are provided in an NgModule with a reference to the NgModule where they are provided. The commit also does a refactoring of the `processNgModuleDocs` dgeni processor code, to make it easier to maintain. Fixes #41203 PR Close #41960
29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
HTML
{% import "lib/memberHelpers.html" as memberHelpers -%}
|
|
{% import "lib/ngmodule.html" as ngModuleHelpers -%}
|
|
{% extends 'class.template.html' -%}
|
|
|
|
{% block overview %}{% endblock %}
|
|
|
|
{% block details -%}
|
|
{$ ngModuleHelpers.ngModuleList(doc.ngModules, 'Exported from') $}
|
|
{% include "includes/selectors.html" %}
|
|
|
|
{$ memberHelpers.renderDirectiveProperties(doc, 'Properties') $}
|
|
|
|
{% include "includes/export-as.html" %}
|
|
|
|
{% if doc.description or doc.usageNotes %}
|
|
<section class="description">
|
|
<h2>Description</h2>
|
|
{$ (doc.description or '') | trimBlankLines | marked $}
|
|
{$ (doc.usageNotes or '') | trimBlankLines | marked $}
|
|
</section>
|
|
{% endif %}
|
|
|
|
{$ memberHelpers.renderProperties(doc.staticProperties, 'static-properties', 'static-property', 'Static properties') $}
|
|
{$ memberHelpers.renderMethodDetails(versionInfo, doc.staticMethods, 'static-methods', 'static-method', 'Static methods') $}
|
|
{$ memberHelpers.renderMethodDetails(versionInfo, doc.methods, 'instance-methods', 'instance-method', 'Methods') $}
|
|
{$ memberHelpers.renderDirectiveAncestors(doc, 'methods') $}
|
|
{% endblock %}
|
|
|
|
{% block endNotes %}{% endblock %} |