From c98aff0bae52df84af2bd63c9418242724d08725 Mon Sep 17 00:00:00 2001 From: thomas Date: Sun, 4 Feb 2024 13:52:19 +0100 Subject: [PATCH] feat: save --- .../src/app/blog/blog.component.ts | 4 ++-- .../src/app/post/post.component.ts | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/apps/angular/view-transition/src/app/blog/blog.component.ts b/apps/angular/view-transition/src/app/blog/blog.component.ts index 6826644..68ffcde 100644 --- a/apps/angular/view-transition/src/app/blog/blog.component.ts +++ b/apps/angular/view-transition/src/app/blog/blog.component.ts @@ -8,10 +8,10 @@ import { ThumbnailComponent } from './thumbnail.component'; imports: [ThumbnailComponent], template: `
+ class="fixed left-0 right-0 top-0 z-50 flex h-20 items-center justify-center border-b-2 bg-white text-4xl shadow-md"> Blog List
-
+
@for (post of posts; track post.id) { } diff --git a/apps/angular/view-transition/src/app/post/post.component.ts b/apps/angular/view-transition/src/app/post/post.component.ts index 09bfed8..1e1c6fd 100644 --- a/apps/angular/view-transition/src/app/post/post.component.ts +++ b/apps/angular/view-transition/src/app/post/post.component.ts @@ -5,6 +5,7 @@ import { computed, input, } from '@angular/core'; +import { RouterLink } from '@angular/router'; import { ThumbnailHeaderComponent } from '../blog/thumbnail-header.component'; import { fakeTextChapters, posts } from '../data'; import { PostHeaderComponent } from './post-header.component'; @@ -12,9 +13,19 @@ import { PostHeaderComponent } from './post-header.component'; @Component({ selector: 'post', standalone: true, - imports: [ThumbnailHeaderComponent, NgOptimizedImage, PostHeaderComponent], + imports: [ + ThumbnailHeaderComponent, + NgOptimizedImage, + PostHeaderComponent, + RouterLink, + ], template: ` -
+
+

{{ post().title }}