angucomplete
angucomplete copied to clipboard
pre populate the search input
Hi. Is there anyway that I pre-populate the searchStr?
In my app, when user search for something she needs to pick other stuff in the search and press the enter. then page refreshes and load the new data. I need to show the searchStr that user has entered beforehand in the search box.
I can get the search string via a server side language such as PHP or Rails then I tried to set the $scope.searchStr = $_GET['keyword'], I can see when I am debugging with firebug that value had been passed to the value attribute of the field however it doesnt show anything on the search field.
Can you please suggest a solution for it? Thanks.