mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(api): fixes broken api docs post mat upgrade (#7457)
This commit is contained in:
@@ -90,11 +90,7 @@ export class MatDrawerContent implements AfterContentInit {
|
||||
|
||||
|
||||
/**
|
||||
* <mat-drawer> component.
|
||||
*
|
||||
* This component corresponds to a drawer that can be opened on the drawer container.
|
||||
*
|
||||
* Please refer to README.md for examples on how to use it.
|
||||
*/
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
|
||||
@@ -220,10 +220,11 @@ function getDirectiveOutputAlias(doc) {
|
||||
function getDirectiveSelectors(classDoc) {
|
||||
const directiveSelectors = getMetadataProperty(classDoc, 'selector');
|
||||
|
||||
|
||||
if (directiveSelectors) {
|
||||
// Filter blacklisted selectors and remove line-breaks in resolved selectors.
|
||||
return directiveSelectors.replace(/[\r\n]/g, '').split(/\s*,\s*/)
|
||||
.filter(s => s !== '' && !s.includes('mat') && !SELECTOR_BLACKLIST.has(s));
|
||||
.filter(s => s !== '' && !s.includes('md') && !SELECTOR_BLACKLIST.has(s));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +1,18 @@
|
||||
<h4 class="docs-api-h4 docs-api-class-name">
|
||||
<code>{$ class.name $}</code>
|
||||
</h4>
|
||||
<p class="docs-api-class-description">{$ class.description | marked | safe $}</p>
|
||||
|
||||
{%- if class.description -%}
|
||||
<p class="docs-api-class-description">{$ class.description | safe $}</p>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if class.directiveSelectors -%}
|
||||
<div class="docs-api-directive-selectors">
|
||||
<p class="docs-api-directive-selectors">
|
||||
<span class="docs-api-class-selector-label">Selector:</span>
|
||||
{% for selector in class.directiveSelectors %}
|
||||
<span class="docs-api-class-selector-name">{$ selector $}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</p>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if class.directiveExportAs -%}
|
||||
|
||||
Reference in New Issue
Block a user