client/app/home/home_controller.js
changeset 1 74bbdd739878
parent 0 cef349423167
child 8 824c87a9084c
--- a/client/app/home/home_controller.js	Wed Jun 11 01:26:59 2014 +0200
+++ b/client/app/home/home_controller.js	Thu Oct 02 13:24:57 2014 +0200
@@ -12,6 +12,9 @@
     })
     .controller('homeCtrl', function($scope, $location){
       console.log('5-0',$scope, $location);
+      $scope.searchSubmit = function(){
+          $location.path('/search/' + $scope.q);
+      };
     });
 
 })();