donmahallem/TrapezeClientNg

View on GitHub
src/app/modules/stops/stops-info.component.pug

Summary

Maintainability
Test Coverage
mat-nav-list.stoplist(role="list")
    ng-container(*ngFor="let item of stops;let idx = index;")
        mat-divider(*ngIf="hasHeader(idx)&&idx>0")
        h3(*ngIf="hasHeader(idx)",mat-subheader) {{item.name.charAt(0)}}
        a([routerLink]="['/stop', item.shortName]",title="{{item?.name}}")
            mat-list-item(role="listitem")
                mat-icon(mat-list-icon) place
                h4(mat-line) {{item?.name}}