Skip to content

Instantly share code, notes, and snippets.

@shinecita
Created February 6, 2014 14:39
Show Gist options
  • Save shinecita/8845414 to your computer and use it in GitHub Desktop.
Save shinecita/8845414 to your computer and use it in GitHub Desktop.
module.exports = function ($scope, $state, Search) {
$scope.searchString = function() {
$scope.questions = Search.query({queryString : $scope.queryString})
$state.go('search');
// $state.go('search', {questions: [{body : "asd"}]});
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment