Skip to content

Commit

Permalink
refactor: skip hydration for the article component
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymelou committed Jul 21, 2024
1 parent b8a6f46 commit d50505d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion apps/website/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const appRoutes: Route[] = [
import('@valerymelou/blog/article').then(
(c) => c.BlogArticleComponent,
),
data: { animation: 'BlogHomePage' },
resolve: {
article: articleResolver,
},
Expand Down
9 changes: 2 additions & 7 deletions libs/blog/feature-article/src/lib/blog-article.component.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
<article class="relative mx-auto max-w-3xl pt-10">
<a
routerLink="/blog"
ui-flat-button
color="accent"
aria-label="Go back"
class="mb-4"
>
<a routerLink="/blog" ui-flat-button color="accent" class="mb-4">
<ng-icon name="bootstrapArrowLeft" strokeWidth="5" size="20"></ng-icon>
<span class="ml-3">Articles</span>
</a>
<dl>
<dt class="sr-only">Date</dt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { ButtonComponent, LinkComponent } from '@valerymelou/shared/ui';
],
templateUrl: './blog-article.component.html',
viewProviders: [provideIcons({ bootstrapArrowLeft })],
host: { ngSkipHydration: 'true' },
})
export class BlogArticleComponent implements OnInit, OnDestroy {
article!: Article;
Expand Down

0 comments on commit d50505d

Please sign in to comment.