Created
February 6, 2014 14:39
-
-
Save shinecita/8845414 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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