From 9797f6b9b102e34677214a0c32b258975e0101ef Mon Sep 17 00:00:00 2001 From: "Wataru.Kasahara" Date: Wed, 15 Nov 2023 19:26:53 +0900 Subject: [PATCH] yarn ng generate @angular/core:control-flow --- .../activity/pages/activity/activity.component.html | 6 ++++-- .../blog/containers/articles/articles.component.html | 10 +++++++--- .../features/blog/ui/article/article.component.html | 6 ++++-- src/app/features/lab/pages/lab/lab.component.html | 6 ++++-- src/app/features/top/containers/top/top.component.html | 8 ++++++-- src/app/shared/card/card/card.component.html | 8 ++++++-- 6 files changed, 31 insertions(+), 13 deletions(-) diff --git a/src/app/features/activity/pages/activity/activity.component.html b/src/app/features/activity/pages/activity/activity.component.html index fea02270..9d1f3abc 100644 --- a/src/app/features/activity/pages/activity/activity.component.html +++ b/src/app/features/activity/pages/activity/activity.component.html @@ -1,9 +1,11 @@ diff --git a/src/app/features/blog/containers/articles/articles.component.html b/src/app/features/blog/containers/articles/articles.component.html index 145b72e6..f549cf01 100644 --- a/src/app/features/blog/containers/articles/articles.component.html +++ b/src/app/features/blog/containers/articles/articles.component.html @@ -2,8 +2,12 @@

はてなブログに投稿された最新の 30 件を表示

-
- +@if (articles$ | async; as articles) { +
+ @for (article of articles; track article) { + - + +}
+} diff --git a/src/app/features/blog/ui/article/article.component.html b/src/app/features/blog/ui/article/article.component.html index 5585a7ae..1984a33a 100644 --- a/src/app/features/blog/ui/article/article.component.html +++ b/src/app/features/blog/ui/article/article.component.html @@ -2,8 +2,10 @@

{{ feedItem.publishDate | date : 'yyyy/MM/dd' }}

{{ feedItem.title }}
    - + @for (category of feedItem.categories; track category) { +
  • {{ category }}
  • -
    + +}
diff --git a/src/app/features/lab/pages/lab/lab.component.html b/src/app/features/lab/pages/lab/lab.component.html index c4035e8c..c6048a09 100644 --- a/src/app/features/lab/pages/lab/lab.component.html +++ b/src/app/features/lab/pages/lab/lab.component.html @@ -1,10 +1,12 @@ - +@for (content of labsContents; track content) { + - + +} diff --git a/src/app/features/top/containers/top/top.component.html b/src/app/features/top/containers/top/top.component.html index 1d7d48f6..8e80fe7f 100644 --- a/src/app/features/top/containers/top/top.component.html +++ b/src/app/features/top/containers/top/top.component.html @@ -4,9 +4,13 @@ diff --git a/src/app/shared/card/card/card.component.html b/src/app/shared/card/card/card.component.html index 6ac85396..24f6532e 100644 --- a/src/app/shared/card/card/card.component.html +++ b/src/app/shared/card/card/card.component.html @@ -1,7 +1,11 @@
{{ title }}