Skip to content

Commit

Permalink
feat(blog): Article に表示する記事の件数を 20 件に増やした
Browse files Browse the repository at this point in the history
  • Loading branch information
kasaharu committed Mar 10, 2021
1 parent a425554 commit bf8c110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/features/blog/containers/articles/article.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class ArticleStore extends ComponentStore<Feed> {
super({ items: [] });
}

readonly blogItems$: Observable<Article[]> = this.select((state) => state.items.filter((_, index) => index < 10));
readonly blogItems$: Observable<Article[]> = this.select((state) => state.items.filter((_, index) => index < 20));

readonly setFeed = this.updater((_, feed: Feed) => {
return { items: feed.items };
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<app-page-title [title]="'Articles'"></app-page-title>

<p>はてなブログに投稿された最新の 10 件を表示</p>
<p>はてなブログに投稿された最新の 20 件を表示</p>

<div class="feed-wrapper" *ngIf="articles$ | async as articles">
<ng-container *ngFor="let article of articles">
Expand Down

0 comments on commit bf8c110

Please sign in to comment.