Skip to content

Commit

Permalink
fix(list): link to item page when its a question
Browse files Browse the repository at this point in the history
  • Loading branch information
sebholstein committed Jul 18, 2017
1 parent 1882c8a commit bc3bbd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/list/list.component.html
Expand Up @@ -14,7 +14,10 @@
{{ c.no }}
</span>
<div>
<h2><a [href]="c.url">{{ c.title }}</a></h2>
<h2>
<a [href]="c.url" *ngIf="mode !== 'ask'">{{ c.title }}</a>
<a [routerLink]="['/item', c.id]" *ngIf="mode === 'ask'">{{ c.title }}</a>
</h2>
<div class="meta">
{{ c.score }} points by {{ c.by }} {{ c.time_ago }} | <a [routerLink]="['/item', c.id]" class="c-link">{{ c.descendants }} comments</a>
</div>
Expand Down

0 comments on commit bc3bbd1

Please sign in to comment.