archive show link href instead of binding click event

This commit is contained in:
yafeilee 2014-12-23 20:36:34 +08:00
parent 65255ab522
commit a2df71bcc9
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@
, 3000
$scope.visit = (id)->
window.location.href = ("/blogs/" + id)
"/blogs/" + id
$scope.update_start_with = (start_with)->
$scope.start_with = start_with

View File

@ -4,7 +4,7 @@
.small-12.large-9.large-centered.columns
ul.archives-field ng-model="type" ng-init=" type= '#{@type}' "
li ng-repeat=" post in posts "
a.blog-title ng-click="visit(post.id)"
a.blog-title ng-href="{{ visit(post.id) }}"
|{{ post.title }}
p.tags-field
i.fi-calendar