Skip to content

Commit

Permalink
init claps when creating new a post
Browse files Browse the repository at this point in the history
  • Loading branch information
hoanglecao committed Dec 15, 2017
1 parent 9f087a5 commit 95b64e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h5>
</div>
<a [routerLink]="[post.id]" class="button button--smaller button--chromeless u-baseColor--buttonNormal">Read more…</a>
<div class="none-line-divider"></div>
<post-clap [NumberOfClaps] = "post.claps.length" (clapEvent)="onClap(post.id)" ></post-clap>

</ng-template>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export class Post {
this.title = '';
this.description = '';
this.comments = [];
this.claps = [];
}
}

0 comments on commit 95b64e9

Please sign in to comment.