Skip to content

Commit e1fd1fc

Browse files
committed
Merge pull request #19 from TheFirstAvenger/master
added 'goto' to stats directive. Takes ui-sref state name
2 parents 8e6e739 + 1c7f647 commit e1fd1fc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/scripts/directives/dashboard/stats/stats.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</div>
1212
</div>
1313
</div>
14-
<a href="#">
14+
<a ui-sref="{{goto}}">
1515
<div class="panel-footer">
1616
<span class="pull-left">View Details</span>
1717
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>

app/scripts/directives/dashboard/stats/stats.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ angular.module('sbAdminApp')
1919
'name': '@',
2020
'colour': '@',
2121
'details':'@',
22-
'type':'@'
22+
'type':'@',
23+
'goto':'@'
2324
}
2425

2526
}

0 commit comments

Comments
 (0)