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
		
			
				
	
	
		
			18 lines
		
	
	
		
			526 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			526 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% macro ngModuleList(ngModules, heading) %}
 | |
| {% if ngModules and ngModules.length > 0 %}
 | |
| <h2>{$ heading $}</h2>
 | |
| <ul>
 | |
| {% for ngModule in ngModules %}
 | |
|   <li>
 | |
|     {% if ngModule.path %}
 | |
|     <a href="{$ ngModule.path $}">
 | |
|       <code-example language="ts" hideCopy="true" class="no-box">{$ ngModule.name | escape $}</code-example>
 | |
|     </a>
 | |
|     {% else %}
 | |
|       <code-example language="ts" hideCopy="true" class="no-box">'{$ ngModule | escape $}'</code-example>
 | |
|     {% endif %}
 | |
|   </li>
 | |
| {% endfor %}
 | |
| </ul>
 | |
| {% endif %}
 | |
| {% endmacro %} |