https://github.com/angular/angular
Raw File
Tip revision: 25f79ba73e19bcf7c0925283a2dfdf2d9186eb49 authored by Andrew Kushnir on 12 August 2020, 16:35:37 UTC
release: cut the v10.0.9 release
Tip revision: 25f79ba
resource-list.component.html
<div class="resources-container">
  <div class="flex-center group-buttons">
    <a *ngFor="let category of categories"
      [class.selected]="category.id == selectedCategory.id"
      class="button mat-button filter-button"
      (click)="selectCategory(category.id)"
      (keyup.enter)="selectCategory(category.id)">{{category.title}}</a>
  </div>
  <div class="l-flex--column align-items-center">
    <div class="shadow-1 showcase">
      <div *ngFor="let subCategory of selectedCategory?.subCategories">
        <a class="h-anchor-offset" id="{{subCategory.id}}"></a>
        <h3 class="subcategory-title">{{subCategory.title}}</h3>

        <div *ngFor="let resource of subCategory.resources">
          <div class="c-resource">
            <a class="l-flex--column resource-row-link" rel="noopener" target="_blank" [href]="resource.url">
              <div>
                <h4>{{resource.title}}</h4>
                <p class="resource-description">{{resource.desc || 'No Description'}}</p>
              </div>
            </a>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
back to top