-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yarn ng generate @angular/core:control-flow
- Loading branch information
Showing
6 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
6 changes: 4 additions & 2 deletions
6
src/app/features/activity/pages/activity/activity.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<app-page-title [title]="'Activity'"></app-page-title> | ||
|
||
<nav mat-tab-nav-bar> | ||
<ng-container *ngFor="let category of categories"> | ||
@for (category of categories; track category) { | ||
|
||
<a mat-tab-link [active]="activeLink === category.key" [routerLink]="category.key">{{ category.label }}</a> | ||
</ng-container> | ||
|
||
} | ||
</nav> | ||
|
||
<router-outlet></router-outlet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
<app-page-title [title]="'Labs'"></app-page-title> | ||
|
||
<ng-container *ngFor="let content of labsContents"> | ||
@for (content of labsContents; track content) { | ||
|
||
<app-card | ||
[title]="content.title" | ||
[demoPageUrl]="content.demoPageUrl" | ||
[repositoryName]="content.repositoryName" | ||
[repositoryUrl]="content.repositoryUrl" | ||
></app-card> | ||
</ng-container> | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<div class="card"> | ||
<div class="card-title">{{ title }}</div> | ||
<div class="external-links"> | ||
<a *ngIf="demoPageUrl" class="link" appExternalLink href="{{ demoPageUrl }}">demo</a> | ||
<a *ngIf="repositoryUrl" class="link" appExternalLink href="{{ repositoryUrl }}">GitHub - {{ repositoryName }}</a> | ||
@if (demoPageUrl) { | ||
<a class="link" appExternalLink href="{{ demoPageUrl }}">demo</a> | ||
} | ||
@if (repositoryUrl) { | ||
<a class="link" appExternalLink href="{{ repositoryUrl }}">GitHub - {{ repositoryName }}</a> | ||
} | ||
</div> | ||
</div> |