valor-software/ng2-bootstrap

View on GitHub
demo/src/app/docs/api-docs/api-doc-config/api-doc-config.component.html

Summary

Maintainability
Test Coverage
<div (click)="trackSourceClick()" class="api-doc-component">
  <h3 [attr.id]="headerAnchor">
    <a href="https://github.com/valor-software/ngx-bootstrap/tree/development/{{ apiDocs.fileName }}"
       target="_blank" rel="noopener">{{ apiDocs.className }}</a>
  </h3>
  <p [innerHtml]="apiDocs.description"></p>

  <ng-template [ngIf]="apiDocs.properties && apiDocs.properties.length">
    <section>
      <h3>Properties</h3>
      <table class="table table-bordered">
        <tbody>
        <tr *ngFor="let prop of apiDocs.properties">
          <td class="col-xs-3"><code>{{ prop.name }}</code></td>
          <td class="col-xs-9">
            <div><i>Type: </i><code>{{ prop.type }}</code></div>
            <ng-template [ngIf]="prop.defaultValue">
              <div><i>Default value: </i><code>{{ prop.defaultValue || '-'}}</code></div>
            </ng-template>
            <div [innerHtml]="prop.description"></div>
          </td>
        </tr>
        </tbody>
      </table>
    </section>
  </ng-template>
</div>