archive show link href instead of binding click event
This commit is contained in:
parent
65255ab522
commit
a2df71bcc9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue